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.
I doubt it, this solution is at least 8 years old.
chatgpt?
i think it has been corrected, it is great coding
can you explain the formula for time or what the name is?
Nice
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
It will never fail since it's javascript. The worst it could get is a NaN value for
time
.Nice solution, keeps it short and sweet!
Your solution fails for this test:
isMerge("catodc", "cod", "cat"); // should return false, but yours return true
Thanks :)
Clean and readable :)
as much as I like recursion, this seems to be a resource-hungry formula.
My solution was very similar to this, only about 1 out of every 3 times it would fail the tests due to rounding error. So I put in a margin of error.