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.
Yeah... Seems you cannot use recursive function this way cause it is detected as a cheat. Sounds weird.
I know it's a while now, but for whoever is also wondering:
I believe it's just a matter of preference using
const
arrow-functions for one-liners andfunction
for longer functions.Nope, not happening
This kyu and a lot above them make programming seem like it is really a geek math playground. It is easy to see why some of the YouTube rants about coding challenges being useless for learning how to code when you look at katas like this one.
This is easy to brute force, but you will run out of time. Even algorithms which know a little math will fail due to time outs, so you are going to likely search for the algorithm vs trying to figure it out.
Did you choose the correct Haskell version?
Thanks for your feedback.
If you have any suggestion for the specific commands to be added, let me know of it.
which line code was wrong?