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.
Thanks for building interesting kata, keep it up mate :)
Yeah totally agree !!!
You don't need extra space in character class,
[\s]+
will do the sameLol how come this is wrong advice ?
Just change to this and see
const wolfIndex = queue.length - 1 - queue.lastIndexOf('wolf');
It save extra looping which you do to reverse the array
There's no need of
queue === ["wolf"]
in first if conditionYou can use lastIndexOf instead of reversing queue
Depends how much trdae off you like, i try to short only upto a point where it stays readable also.
Better in what sense ?
Both solution are same except number of characters, i wrote it so it stays readable also.
x:y
0 <= x <= 4
0 <= y <= 4
This is what the format is already described in question.
This comment is hidden because it contains spoiler information about the solution
This is awesome :) that's why i love regex a lot :)
Sorry my bad i had some code commented out and because of that it was failing the some keywords are prohibited test.
I think
.
is also prohibited i am using Math functions and it's still failing keywords test.How about
.
and,
?I am solving this with the help of simple object, i am not using any of prohibited character why keywords test fails ?
is
:
is prohibited ?Loading more items...