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
This comment is hidden because it contains spoiler information about the solution
Could you please share the link where I can read more about this solution)
I like this one. Very functional and easy to read.
Obviously this is best practice
You have a missing semicolon
@alexschrod awesome answer, thank you for explaining so succinctly
dang and I thought mine is simple enough
Problem with this solution is that it is O(n) and solution can be O(1)
Same decision :)
This comment is hidden because it contains spoiler information about the solution
I know this is old, but can someone explain where the s comes into play?
I know the left side s is the parameter but the right side s is what is returned, but how does that return if the vale is true if there is only the parameter.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Not quite right. A recursive solution like this is exponential (at least 1.6^n). O(n) is actually very good.
Loading more items...