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 translated from Haskell lol
In Haskell the length of list is not always
10
:Random tests:
STDERR:
Me too. My code passed all the tests but exited with
Exit Code: 255
. I am using Haskell.I found my solution by searching for the sequence on OEIS :)
C++ Translation
Please review and approve.
Still remember I could not understand this code several months ago :D
There have already been an
(&)
function inData.Function
that do the same thing like(|>)
, so we could just writeThis comment is hidden because it contains spoiler information about the solution
If you are using a language with lazy evaluation like Haskell then this is the best practice :-)