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.
No need of k-means ;)
Also, forgot to take the c+=k out of the try statement in the screenshot, ignore that!
This comment is hidden because it contains spoiler information about the solution
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.
I most definitely agree. It took me a while to figure this one out, on my own without the help of google. Because of all of the head scratching, I will forever be able to code this problem in any language.
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
Incorrect test:
Assert::That(Carmichael(4), Equals(1));
https://www.wolframalpha.com/input/?i=carmichael%284%29
Error messages differentiate actual and expected values.
Thank you! :)
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.
Loading more items...