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.
Nope. It's still not resolved. You need to make a new reply and mark the checkbox below the comment box.
You should resolve thte issue if the problem has been solved.
In Javascript searching for an item in array is o(n). I didnt create the python translation or solution, only the js one, so I cant help you out there, sorry.
That is why I asked you which language you were doing it in. I thought you were using javascript. On a side note, how is a dictionary o(n)?
Using
array
for lookups could potentially be really slow. It is O(n) worst case so if you passed the kata usingarray
as a lookup, then my performance tests weren't testing all the edge cases.This comment is hidden because it contains spoiler information about the solution