排序
Java math challenge
Java math challenge, What should be printed? int result = 0; result = result + (null != null ? 3 : 2); result += (1 & 2) == 1 ? 2 : 3; result += 1e5; result += 1e2; System.out....
Java Inheritance Puzzle
Java Inheritance Puzzle,Imagine we have one interface and these classes: interface SuperType { void test(); } class DefaultSuperType implements SuperType{ @Override void test(){ Sy...
Java String Puzzle
Java String Puzzle,Eclipse posted this Java puzzle to Twitter today: ...do you know what will be printed without coding it and trying it? 原文链接:Java String Puzzle
Solving the Cretan maze
Solving the Cretan maze, So let's play the game Recently Leonora Der published great piece of work: Solve the Cretan maze. That challenge is really interesting because It doesn't r...
Write a script to identify similarity from two string.
Write a script to identify similarity from two string.,Implement a similarity method that compares two strings and returns a number representing the percent similarity between the ...
Check if the chain has the same amount
Check if the chain has the same amount,Check if a string has the same amount of 'x' and 'o'. The method must return a Boolean value and must not be case-sensitive. The string can c...
Challenges
Challenges,I will try to post challenges every day, like if you like the idea. If you have more ideas, let me know: D 原文链接:Challenges
Narcissistic number
Narcissistic number,A Narcissistic Number is a number that is the sum of its own digits, each one raised to the power of the number of digits. Example: 1^3 + 5^3 + 3^3 = 1 + 125 + ...
Write a simple but impactful script
Write a simple but impactful script,Basic challenge (simple): Write a script that produces all possible 4-digit numbers (0000...9999), then put them into a random order and save th...