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.
edit: or were you actually asking for more fixed tests??
Your solution is using recursion. It looks roughly correct, but will be very slow on large problem instances due to all the copying of data. Maybe you could use a non-recursive implementation of the same algorithm?
eval
when you can write and execute the code directly?someString.replace(someRegex, someReplacement)
without assigning the result to a variable just leaves the original string unchanged.Thanks!
Thanks.
Thanks
Thank you
This comment is hidden because it contains spoiler information about the solution
hope that helped :)
p.s.: this is not the most elegant way to solve the task, there are better approaches
;-)