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.
That seems fantastically inefficient indeed: other than going for a quadratic approach, why would you count how many times you found overlapping? Just return
false
, can't you?This comment is hidden because it contains spoiler information about the solution
Paste your code here using proper markdown and mark your post as having spoiler content if you want someone else to take a look at it.
I am struggling to see fault with my code as it completes quickly in the sample tests and extra testing. How can one tell if their code is inefficient?
Infinite loop or inefficient algorithm.
This comment is hidden because it contains spoiler information about the solution