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.
Ruby translation
https://www.codewars.com/kumite/626da82056f97e792802ea83?sel=626da82056f97e792802ea83
You can't submit in a Draft.
Can't submit my solution even though it passes all tests (test and attempt in JavaScript).
I see congratulation and offering Submit when ready, but there is no Submit button.
And doesn't work for Integer.MIN_INTEGER? No thanks
Where can I see how many tests pass?I found out that the Ruby version shows how many tests passed and the Elixir one does not.
C++ is generally much faster than Ruby, but it provides less syntactic sugar, less built-in facilities... In many katas an algorithm working in a language won't work with another. Think about an assembly language like NASM, where the simplest algorithm rated 7 kyu may be harder than 4 kyu in most others. What should be done? It's impossible to reach fairness between languages, they are so different.
This comment is hidden because it contains spoiler information about the solution
No indication is given on how to distinguish tail from loop.
This comment is hidden because it contains spoiler information about the solution
String sNum = "" + Math.abs(num);
let you eliminate second string.