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.
You can increase the recursion limit (in your solution) by importing sys
and using sys.setrecursionlimit()
Probably not recommended, but it sure feels good thwarting Guido Van Rossum's will. Sorry Guido.
The problem with learning recursion is that the examples that are easy(ish) to understand,
are usually terrible examples of how to actually use it.
looks like u solved it
'Looks like you've solved it'
The problem is deeper than that -- for consistency, the Python translation should decrease the upper limit on numbers tested.
There is a recursion limit, which you exceed. Try a different solution.
either codewars is slow or your solution is inefficient.
@Anvar Turobov, your solution is not passing all the tests. Add
test.assert_equals(remove(""), "")
in "Example Tests" and see what happens.This comment is hidden because it contains spoiler information about the solution