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
Very elegant!
This comment is hidden because it contains spoiler information about the solution
Just for the record, it's not as yucky as you think.
itertools
uses a lowercase convention for all its classes (cycle
,zip_longest
, etc). I don't understand the rationale but I guess it's so the user doesn't see them as classes. Edit: nvm i just learned it has to do with whether the class is implemented in C or PythonThanks, sometimes these kata will support either method-shaped or class-shaped solutions with a clever import, but in this case I just aliased it myself. The naming convention felt yucky to have a lowercase class hahaha.
Thanks! :)))
Bro good job, clever as fuck!!!
The aliasing is smart!
This was designed with expandability in mind, so that with minimal modification it could handle an arbitrary number of generators, and non-infinite generators.
I agree that this minimum output value for this function should be 1 for any non-empty input string. That test case is incorrect in my view.
You have a problem in your tests, check my "solution".
Oh dang, apologies for this oversight when resolving your previous issue where you reported this problem. I will properly address this three-of-a-kind omission before resolving this time.
This comment is hidden because it contains spoiler information about the solution
This kata has been updated so that this solution no longer passes.
This kata has been updated so that this solution no longer passes.
Loading more items...