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.
This comment is hidden because it contains spoiler information about the solution
Was struggling with the random tests to complete this same translation. Guess I don't have to worry anymore.
Good job, man.
This comment is hidden because it contains spoiler information about the solution
Fair enough, I'll unpublish this translation until I figure out the random testing.
I completed the
Ecrypt This!
Kata, wich is based on this one, then realized there wasn't a C# version for it.Thought that even if I didn't knew how to generate random tests it would be still good to at least start the translation so people could improve on it.
I saw that, and this is not an excuse for not writing random tests. Take a look at some other katas available in C#, and see how random tests are implemented there.
If you don't know how to generate random inputs for this particular problem, look through the translations, and see how the random tests are written in other languages.
The description is shared for every language. You just replaced one convention (used in many languages) with another (used in a couple languges). If you want to improve it, change it to something language-independent like:
I included comments regarding the lack of random tests.
I'm a begginer but wanted to start doing something, that's why it's a bit bareboned.
And that's why there's comments saying "need help with X".
That was just for the naming convention to be standardized, but understood.
Don't change the description if you're not improving it in any way.
No random tests.
Had the same problem but when I fixed it, I broke the last "ghost test" from the sample.
Expected: 4
Actual: 3
And I can't seem to find a way around it.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Got the right output but as int, not binary. Had to check the discussion and read up on binary to really get it.
Initially I thought it was just to pass the binary representation (i.e.: 1111 for 15). But I was getting the actual int 1111 not it's binary equivalent.
Tricky stuff.
The "test" button will only run a few tests. After that passes you shold use the "attempt" button and that should do it.