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 solution doesn't work for this case
returnAscending(1,2,3,10,50)
// '11023450'
should be
"20000000000000000000000000000000000000000"
Done.
Added
static
and random tests.Done.
Are you able to improve your translation using @monadius suggestions?
Thanks! Approved.
I see now. This is pretty strange. Maybe Codewars bug?
It didn't crash, that's the point. Take a look at the output.
Bug is in this line:
bar
is partial function, which means it does not handle all possible inputs. It does handle only []. You pass [1] to it and get runtime crash.Why not
?
C translation is ready! Please review and approve.
Function should take one number.
Cool!
Nice!
Didn't think of that.
Loading more items...