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.
looking at the solution and your code I can only see two possible issues.
If you still fail the tests...
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
minor point, but enumerate accepts a starting number as an argument. In other words, you get enumerate to count from 1 rather than using n + 1
It is a 7th kyu Kata. So maybe people find this more clear than some of the one-liners?
fyi, I don't actually think this is a great solution; Index Error could be solved in a better way.
In the basic test cases you state:
Why doesn't Just "(1) + 3 + 3 + 3 + 3" count as a solution for the number 13 (ignoring parenthesis) ??
Either the text is wrong or the kata description needs to give an explanation for why the above would not be valid.
In terms of performance, I believe it it better to create a list and then call join add the very end.
This is because appending to a string is not a constant time operation whereas appending to a list is.
done
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...