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.
Well, guess who just had to learn Java because there wasn't a C/C++ or Python version.
At least it's a nice way to get to
1kyu
, congrats to me!!Also, nice kata, I've been wanting to put my micro-optimized prime finding methods to the test for a while now, so this was great for that.
C translation
nah, a Captain sinks with his ship.
Your solution omits a few cases (and instead contains duplicates of other cases), but my tests didn't catch that. I updated the tests, which invalidated this solution. Sorry! Feel free to submit another one.
Yeah, my tests are great.
If you want to play violin concertos in binary, study Hacker's Delight. But frankly – unless you're writing an optimizing compiler or similar low-level stuff, this isn't important. May be the opposite, if it leads to cryptic code. I wrote this kata just for fun, it's not meant to be useful. :-)
The given solution is cool – it can also generate all groups for a given language. But since that's not required and the code may be hard to understand for users who don't know Prolog well (e.g. me), I'll replace it with simpler code.
I'll add a few other changes to make this translation more similar to the others:
Thanks a lot! Approved.
Done.
I just want to say that I really appreciated this kata, as it gave me an opportunity to learn a JavaScript feature that I wasn't already familiar with. I use stream functions all the time in my Node development work, but I have never really thought about how to generate them before. Very satisfying to put it together.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Fixed.
Please leave it open! I had a quick look at it when you published it, I just didn't have time yet to check it and approve it. But I will! Thanks!
Do you have any interest in a SQL translation, else I'll reject it?
Loading more items...