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
In case you haven't worked this out yet, [null] means an array with a null object inside it, whereas null means a null object. S0 you just want to change your code so it returns null if any of the elements are null.