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.
why
var
is not used in this solution?This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Facing the same problem :(
Failing due a very strict formatting on displaying function...
I agree with you, this is really succinct and clever. In any case, the lower case letters can be tackled with simple 'i' flag on the regular expression, which I use.
Really great job @ooflorent making this solution readable and easy to understand
Hi Zozo, thx for clearing up, it seems it's me that doesn't understand the instruction - Sorry bout that
Some of the test case on submitting is wrong
The first 2 lines below are the arguments, third line are the result
[ 1, 4, 2, 3, 5, 4, 5, 6, 7 ]
[Function: isEven]
Expected: [], instead got: [4,2,6]
[ 2, 100, 1000, 10000, 5, 3, 4, 6 ]
[Function: isEven]
Expected: [2,100,1000,10000], instead got: [2,100,1000,10000,4,6]
[ 2, 1, 2, 4, 3, 5, 4, 6, 7, 8, 9, 0 ]
[Function: isOdd]
Expected: [], instead got: [1,3,5,7,9]
[ -1, -5, 127, 86, 902, 2, 1 ]
[Function: isOdd]
Expected: [-1,-5,127], instead got: [-1,-5,127,1]