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.
Done.
Added
static
and random tests.Done.
I see now. This is pretty strange. Maybe Codewars bug?
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!
This comment is hidden because it contains spoiler information about the solution
There are no random test cases
Mark your comment as having spoiler content.
I could not understand how.
Done.
Fixed.
Loading more items...