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.
Hi
my code works with the present tests ,
but if the max of the array is simultaneously at the beginning and the end , it should fail :
so the tests should take that conf into account
Java, maybe other languages:
no fixed tests for arrays of length
0
or1
, which the description does not rule outThis comment is hidden because it contains spoiler information about the solution
could someone explain (in other words) what "but displaced, or rotated, by any number of steps." means? I really don't get it :)
Need a test case like the following: {9,10,14,12,13}
This case would fail several of the accepted answers because they check for more than one instance of prev > current as a fail condition.