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.
feels good my solution is the same as the fist ranking solution
The other good option is Ellipsis.
It worked fine when I ran the code. Are you sure you're not mistaken? Does the test give a list with
[None]
and is it a requirement?Does not work when None is present, f.e. the list [None] as input won't work.
i like this one
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
First time have identical solution. I'm surprised best solution isn't oneliner (-:
I like it because it's not a one-liner haha
great minds think alike >.<
For
prev
, It's better to usefloat('NaN')
instead ofNone
.float('NaN')
shouldn't be equal to any object.Interesting idea! Probably should be more efficient)
This is what I had in mind. But I just couldn't translate into code. Fumbled over this one for quite a while.
coppied? XD
Very similar to mine. I should have named the result "result" not "output"
Loading more items...