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's a limit on recursion, not a kata bug.
I concur, you can brute-force it (although I don't know if there would be a more efficient way to just skip numbers, except just checking if they were even or something, but that's all I can really think of) by checking every number, as long as you know how to check if a number is prime efficiently.
Not really a hard Kata.
Is it? I don't think it's that hard as a 6kyu. You just need to think of how many number to test a bit carefully.
Katas like this would be the ones that truly should be up-ranked to 6kyu.
The full example is
If you change
isWaveSorted
towaveSort
, you change the test.Thanks for your feedback. ;-)
Thanks for your suggestion ;-)
This kata was locked by CW. because there are more than 500 guys solved it.