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.
Very interesting, thank you!
I translated the kata into C++.
The C++ translation uses a custom Vector structure hidden in the preloaded header.
This makes solving this otherwise straightforward kata a bit unpleasant and more complicated than it is.
Either the description or the solution set up should contain the structure declaration.
This was a really interesting kata, I just translated it into C++.
The way C++ handles Unicode made it a bit more challenging than Javascript (more fun).
A good kata with a bearly understandable description.
Like others said here, read the Wikipedia page before you start coding.
This means that also my solution to the original Javascript kata is wrong... I fixed that too
This comment is hidden because it contains spoiler information about the solution
I think that one of them is clearly wrong, to pass it I hardcoded the specific test case.
This killed the joy of seeing the K-Means algorithm decoding that last message.
Oops I didn't see it, sorry for that... fixed. Why does it matter? I thought it was testing that the two terms were equal.
Thank you again, I have revised the code and the tests, and I have also corrected another translation I made from Javascript to C++ along the same principles.
I learned a lot by doing this, thank you!
Personally I found it a bit hard, I'd say harder than the Google interview.
This comment is hidden because it contains spoiler information about the solution
I corrected these points, and checked with -Wall -Wextra any remaining diagnostic warning. The translation should be fine, however my compiler doesn't flag a missing #include and I may be missing something else.
Thank you for your feedback, I learned a lot about writing the test cases and will use this in my next translation.
Unfortunately there isn't much documentation about c++ testing, I followed the example of some katas I solved but they are of variable quality.
Thank you! I've added random testing and fixed undeclared identifiers.
I used strings for input because the Javascript version was accepting those, it doesn't make much sense in C++ though, and I changed it to long long.
This is nice, a first step into supervised learning.
I added a translation in C++.
This was quite interesting, I like katas about number theory.
I just added a translation into C++.