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.
OP solved it, closing
What if lives is -1, -2 ...? ^^
This comment is hidden because it contains spoiler information about the 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
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Please use spoiler flag next time.
There is only one argument there. It's the one inside the parentheses. And the method is applied to a string. There is an implicit coercion to integer from string involved.
&
is a bitwise operator which in this case returns 1 when the idx is odd and 0 when the idx is even.It maps ASCII code to alphabet position
This comment is hidden because it contains spoiler information about the 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
The latest Node version available for this kata does not support
Array.prototype.flat
.Loading more items...