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.
This comment is hidden because it contains spoiler information about the solution
I really don't understand your solution. could you break it down ?Thanks.
Thank you..I thought as much
thanks for your kind comment
i wrote code similar to the top voted but i read your response and code. yours is indeed superior. well done.
thanks for the point, I didn't know that. is there any O(n) solution for this kata?
You do know that using the "in" operator has a compexity of O(n) too right? The time complexity of your code is basically the same as OP.
Here you only need your own logic of thinking =) There are many solutions to this kata, the more experience in programming, the more concise the code turns out.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
this is exactly my solution and i think it's the best
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...