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.
you might consider for-each
error-prone
Does it make any sense?
You can use Math.pow for the square. Either way it is valid.
tolerance and actual value were swapped in the assertions. Corrected.
Java:
allMixed
mixed 2 expected:<8.0> but was:<1.0E-4>
java.lang.AssertionError: mixed 2 expected:<8.0> but was:<1.0E-4>
I do not understand what the problem is, the usual test passes without problems, all the others, too, and only the latter displays this error. Can you help?
y, errors in test:
assertEquals(0, FindOddCubes.cubeOdd(new int[] {-3, -2, 2, 3})); Must be -19(-3^3+2^2=-19, not 0); expected:<0> but was:<-19>