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.
The "issue" tag is for problems with the kata, not problems you're having solving the kata. Please use the "question" tag if you want help with your code.
A couple of hints for solving this kata:
[8, 2, 8, 8, 8, 8, ..., 8]
how many elements would you need to see before returning the answer? There are ways to solve this without counting anything at all, and (usually) without iterating the whole array.When I implement a counting solution (not using NSCountedSet) it succeeds in about 5000ms, but if I consider the second hint my solution instead takes 600ms. Think about it.