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.
It's working now! Thanks very much.
Haha, left isNothing in from debugging it months ago :) Completely useless now thankfully
Hi, I'm the original author of this Kata (Ruby version). Author of the haskell version didn't understand this Kata properly, and indeed added a DFS version instead of BFS.
I have learned haskell to fix this. I added a BFS solution and a correct buildTree (thanks to @nickie for providing one). Please take a look again.
Thanks,
Karol
This has been reported several times, but the author isn't active anymore. See the issues by @muesli4, @karoyakani, @knotman90, @Thom, @lisphacker and @pcapriotti.
Your first haskell test case is wrong. The tree looks like this
is the example provided for JS users.
(The description wasn't modified for Haskell)
manhattanDistance( [1, 1], [1, 1] ) => returns 0
should be manhattanDistance (1,1) (1,1)
etc.