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.
bomboclat
fantastic tools usage
nice
madge
Or maybe not.
But if it should be there, you should type it in I guess.
Handy tool
In Haskell there should be "where" after instance Show Tree and instance Eq Tree. Not a big deal, but it took me a while to realize what is the cause of a syntax error.
Thanks, I managed to fix the issue. Awesome kata!
Hi,
I think this is from the length property (the higher frequencies are, the lower the length of their encoding should be; can also be equal for non-powers of 2). To give you a simple example: Encoding
aabbcccc
should use an encoding where the length of the code word forc
is half of the length of the code words fora
andb
.Hi, for the Haskell version my code is failing with:
however I find this message somewhat unhelpful, I can't figure out what is the root cause, what is being compared to what, or what frequencies are used.
The function signature is wrong. Return type should be a string.
Oh, that makes a lot of sense! Thank you.
The test solutions have been sorted to account for differing methods and starting vertices
Hey guys, regarding the Haskell translation, in one of the hardcoded tests it expects a hull of [(1.0,20.0),(5.0,6.0),(6.0,20.0),(15.0,19.0),(19.0,4.0),(20.0,4.0)], which doesn't make sense...? Going from first to second to third means turning left, and from second to third to fourth means turning right, but should't we only turn in the same direction? Or am I missing something?