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 hope, new tests with 'IllegalArgumentException' as error signal will work.
Random tests ready.
While working, accidentally dropped Blind4Basics' solution into the solutions section (however, with comment), sorry.
I've used it as reference one to adjust tests.
Hello, Toderesa97, need a couple of hours more - do correction in random tests; will update them in a minutes and then write random wrong formatting test. Thank you!
Approved. Just make sure to modify the description accordingly
Will rework random tests a little, and write one for non-correct expression format.
I've just published updated version with 'IllegalArgumentException' as error signal, and portions of random tests.
One's else solution is strong enough to pass them.
I'm trying to resolve kata issues and this can break previous solutions, sorry for that.
Would it be convenient to edit in place?
Ready now.
Function signature changed to "uint64_t hamming(int n)".
Published, but not ready yet - will do some testing, about 1 hour else.
Thank you; will correct this issues.
%d
isn't a correct format specifier forint64_t
.If the range is different, the description should be updated.
If the link wasn't included in the description by the author, it probably shouldn't be in a language-specific block either.
NASM translation
Thank you for reading and answering, it's very helpful for me.
My questions were mostly about real process, when we have transmitter and receiver:
i) how can transmitter use coding table (e.g. a:0, b:10, c:11) provided by receiver?
ii) when transmitter creates one, how can receiver receive that table or re-calculate it self?
Here, serialization is projection Map<Character,String> -> List (e.g. ["a 0", "b 10", "c 11"]).
Encode message: aaaabcc -> 0000101111;
or aaaabcc, ["a 0", "b 10", "c 11"] -> 0000101111
Decode: the inversion of above.
Ok, the description is consistent, and so;
should test system be able to decode result of Huffman.encode("aaaabcc")?
Guess this is not part of kata problem.
I agree with this too.
freq(b+c)=3 is shortly the same as description (Tree construction, "... This node gets reinserted and has the sum of the frequencies of both trees as new frequency.").
Meaning what exactly?
?
Why? Can you provide some examples because I cannot follow your description.
I think it is part of the fun to figure out how to best do something. Also that's the comment on the decode function and not the description. The description goes into detail and explains the basic concepts.
No, it should not. The description is consistent, please read again.
freq(b+c)=3
meaning what? Define first.Loading more items...