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.
that's costly
its a c++17 feature, so is more efficient. eg for larger vector sizes. It can run both accumulation and reduction in parrallel meaning its optimized for multicore systems. Although for this eg the differences are miniscule.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
By far the best solution!
I solved the problem in Haskell using a list comprehension and saw a lot of solutions using 'filter'. In general, would filter be preferred over a list comprehension due to its high-level simplicity, or does it not really matter?