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.
If your Strings have a length of Integer.MAX_VALUE, you really will have other problems with this code.
At runtime, the size of a String object is limited to Integer.MAX_VALUE.
And in the case of such strings, you are in trouble with this code.
:)
I was thinking the exact same thing
res
damn you're right I didn't see that, my bad
thanks for observation, fixed the translation in the following fork
You have to convert them from one base to the other before applying the operator and back after that.
You should make the argument optional in your code I think. It's like that in other languages too.
Error in Java tests:
./src/test/java/SolutionTest.java:35: error: method orArrays in class OrArrays cannot be applied to given types;
required: int[],int[]
found: int[],int[],int
Doesn't this sort the array every time the while loop is called? Very inefficient
This comment is hidden because it contains spoiler information about the solution