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 am printing the input and my output, there are some strange failed ones expecting ""
input : "8"
output: "1000"
Expected: "", instead got: "1000"
input : "9"
output: "1001"
Expected: "", instead got: "1001"
please check the test cases of Ruby
passing the coffeescript one but failed Ruby with identical logic
passed all test cases but failed submission with lots of strange errors:
Expected: "", instead got: "1000"
Expected: "", instead got: "1001"
this is the best one for me
Math.abs(4) is 2, so your for loop doesn't run.
I think you are talking about the square root of it, not half of it.