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.
how do you get to the amount of the combinations?
for l=4 there are more than 4 combinations:
(((xx)x)x)
((xx)(xx))
((x(xx))x)
(x((xx)x))
(x(x(xx)))
you can print the input the very same way you print your solution, to see which cases your code is failing
If you already returned something, your function is already "finished", so you will never get to the final (unconditional) return.