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.
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
Have you tested any of your claims? https://go.dev/play/p/596Wj16Phzj
How?
The newWord variable isn't needed.
The explicit cast also isn't needed, and it is implicit from the defined return type.
The contents of the string is irrelevant.
This comment is hidden because it contains spoiler information about the solution
Apparently, this can be done in O(n2) at best. Correct?
Done. If you still have troubles, make sure you're using 3.8
Best solution out there! Very elegant!
I'll try to figure out anyway, but I agree with you.
Could you please explain the logic behind the choice of 0.0002?
Yep. I was misled by its behavior because of the iterator's name.
So elegant and simple. Amazing!
This comment is hidden because it contains spoiler information about the solution
Equivalent to
iter_s = iter(s); zip(iter_s, iter_s)
orzip(s[::2], s[1::2])
Loading more items...