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.
I did the same. I guess it's a remnants of numerous attempts to return string. A bit later, when I realise that solution requires list, I've changed return string to list, however convertion of two parts remained.
The parameter lines is already a string so no need to convert its expressions. Just the counter.
Note: above comment is true only for python 3 & not for python 2.
Use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
x can be greater than n? and other numbers will be negative to sum up to n? can you explain why x<n/2?
fuckin hell - brilliant
so you are checking for each unit increase in a string value? what if the minimum length of each string is 100... you are having to check from 1 to 100? did i catch your logic correctlly?