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.
Approved
python new test framework is required. updated in this fork
More tests should be added to invalidate such solutions
Yes, but
6
and7
are incorrect, because the next correct number after1
is2
, which doesn't appear. Therefore, all that comes after1
is missplaced and should be included in the returned list. I changed the description to "Incorrect page numbers may appear next to each other".Solved now.
True Story
no example
I think the description is not clear at all and doesn't allow users to properly handle tested cases. It should be stated clearly that 1 may not be in the list and user is expected to return the whole input array in that case.
According to description: Incorrect page numbers will not appear next to each other
Got this in a random test:
[243,216,187,4,5,6,7,8,9,10,11,12,353,14,15,93,17,18,19,3,21,122]
hi,
the example isn't visible anymore in the description, only it's result (surely related to a markdown update)
Thank you for pointing that out to me.
solution setup is incorrect (lacking the colon)
Thank you for the feedback, I've implemented random testing.
Thank you for the generous feedback, these tests have been implemented.
Loading more items...