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.
more efficient and has better methods when working with integers
If that's the case, it's more efficient to write in С. XD
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Your solution is using a library?
This comment is hidden because it contains spoiler information about the solution
If A -> B and later that B-> T so what will be if we have some B's in our dna ?
These B's will be replace too so it's not good option in my opinion.
This comment is hidden because it contains spoiler information about the solution
I don't see what makes your solution more correct when zero is definitely not the smallest integer in an empty array. ;-)
wow!
This comment is hidden because it contains spoiler information about the solution
Case sq = 1, this solution is bad. The next perfect square by 1 is 2 not 4.
Description says "Don't modify the input arr in your code".
Arrays.sort(arr)
does exactly the opposite.Loading more items...