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.
looks like u solved it~~
.
That's kinda impressive: one line. Incomprehensible, but impressive :)
Yes, pls: add the ouput example to the instructions. That would be helpful.
No worries. I solved it. Basically using the same logic. Thanks anyways
i could have helped but this looks too frightening to me and im not good with recursions. but u can do basic iteration and solve it:))
Thnx. That solved it for me.
All
\n
should be preserved. You should only remove from the marker until before the new line or if it is the last line, until the end of it.As so many others I don't understand when/why the solution should or shouldn't end with a \n. Unfortunately the description or comments can't clarify this for me...
because there is a branch of the inner loop wher you don't decrement it? ;p
EDIT: note that this algo will be way too slow for this version of the problem.
This comment is hidden because it contains spoiler information about the solution
Hi, are you sure the test cases work fine? Maybe your problem is from an infinite loop but I think your logic is not quite right anyway.
Matt
This comment is hidden because it contains spoiler information about the solution
Use backticks ` instead of single quotes ' and in their onw line.
Like this:
```python
Your code
```
Don't use globals, they keep their values between tests, so your code will only work fine when called once.
Loading more items...