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.
I don't think that it's one of the best solutions: here filter is called two times, so it's likely that you iterate two time on input, which is unnecessay. This can be solve with a vanilla for loop & one if.
nice
I wish I could produce clean code like this. sigh, back to practicing...
I dig this
There will be 'RVO'.
this is voddo
This comment is hidden because it contains spoiler information about the solution
In the worst situation creating four iterators but using only the first & last yields
This comment is hidden because it contains spoiler information about the solution
Great solution 👏👏
Question from a noob – would this (at scale, for instance) use more memory by creating two separate iterators, or would the compiler optimise this somehow?
What do you think happens if a String argument is given? What is supposed to happen?
Thanks for feedback on my solution! :)
This comment is hidden because it contains spoiler information about the solution
Loading more items...