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.
Why does this work correctly when n=0? Why when n=0 the output is ""?
Pay attention to the dots after the word "zero".
I dont understand; i did quite literally exactly the same thing as you did, but i didn't pass a single test. Anyone got any ideas?
did that lol, fstrings are best
most readable
This solution would fail with an input like
[repeat 'a']
becauselength
hangs on infinite lists.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 was my favorite! Thanks, very useful lesson here.
Thanks!
spoiler flag, please. ;)
And what you wanted to do is that ;)
This comment is hidden because it contains spoiler information about the solution
this solution is very specific to this particular dataset (offset 49 limit 2), will not work if the number of rows changes in the sample...
This comment is hidden because it contains spoiler information about the solution