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.
Nice solution! I'm now just learning about for...of loop so i used that one
in python, unsure of the others languages, random tests does not check for correct order of letters in part1 and part2, only in 2 fix cases, which are easy to bypass by hardcoding them. My solution would fail correct random test.
Clever but has a quadratic time complexity - O(nˆ2)
nice solution!
very easy it should be 8 kyu
This comment is hidden because it contains spoiler information about the solution
what about now ?
please add test StringMerger.isMerge("abcabc", "abc", "abc") is true
Thanks for this solution!
you write whats under the Math.min function so dont fell dumb, now you know how to make it faster
Yes. Exceptions shouldn't be used for flow control. In a real setting, you'd probably parse it as a long (and possibly catch that exception) then check the size for the actual type.
That being said, it is really easy to see what is happening, which is good.
And it looks pretty. :-)
Wouldn't the code be slower because of the try-catch check?
This comment is hidden because it contains spoiler information about the solution
this is best code bro
This is actually the best solution instead of using random loops.
Loading more items...