Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Still Exception in thread "main" java.lang.ArithmeticException: integer overflow for -2147483648
Now this is the actual code, I forgot about Math function.
did not know about this function.thanks a lot.
love you
ups
no me gusta, es muy simple
I love you.
Because it's short. It doesn't matter that it would fail on the first code review. It's short, period
I think integer is just a mispell for whole numbers.
In an integer universe, where all the decimal places are simply cut off. That's why there is the word integer in brackets afterwards, isn't it?
You misunderstood the instructions. You have to raise the number to the third power, the argument
4
is the 4-th term of this sequence of numbers.Shouldn't this be 84^4 = 49787136?
49787136/224 = 222264
"Let's see some cases:
int_cube_sum_div(4) ------> 84
/// divisors of 84 : 1, 2, 3, 4, 6, 7, 12, 14, 21, 28, 42, 84
sum of divisors = 1 + 2 + 3 + 4 + 6 + 7 + 12 + 14 + 21 + 28 + 42 + 84 = 224
cube of 84 = 84^3 = 592704
592704 is a multiple of 224///"
In what universe is 8/3 = 2? It's 2.666......
so 2 is ruled out.
The if(x.getMethodName().equals("canHandleCharactersInWrongOrder")) return false; made my day :D
You might want to avoid comparing Strings with ==, as it can fail under some situations.
Try using string1.equals(string2) instead which is very reliable.