You need to sign in or sign up before continuing.×
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.
My solution uses flawed logic, but it only very occasionaly bombs a ( random ) test.
There should be a fixed test that my solution would fail.
I'm too lazy to figure out the exact edge case - this kata has too many other issues.
Except a linear solution doesn't have an
O(n * log(n))
time complexity and will most likely return the result faster. This "hint" should be removed.