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.
It loops for the entire length of an array even if a solution is found at early index.
Very readable solution!
Very elegant solution!
This comment is hidden because it contains spoiler information about the solution
you can print the input:)
Same code fails sometimes for 4 test cases, and sometimes for 2 test cases. Any idea why ?