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 tried this solution and it failed all the random tests. I saw it here, went back and tried it again and it still failed?
For me it correctly returns "10". I think you copied something wrong maybe?
this code doesn t work correctly.
I copied it then tried to sum 1+1 and got 1011.
addBinary('2', 3);
It's not required for this Kata but it's good to know for external use when converting between denary and binary. See here for more information.
why need
>>> 0
This comment is hidden because it contains spoiler information about the solution
I learned a new method in Ruby!
Not sure why this was marked as "Clever".
straight from stackoverflow. nice.
I thought it was pretty readable...
I think it's pretty obvious that I wasn't concerned with the readability of this solution.
Clever use of ternary operator, but not exactly easy to read.
This comment is hidden because it contains spoiler information about the solution
There was a bug in the initial solution...
Loading more items...