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.
its tow different tests i added 1's that will be easyier to see
This is not what your code returns for this input. This is really weird. I suspect you may have changed something without realizing it. Your code fails on multiple examples, you should focus on solving sample tests correctly first.
for vKnightLeft = 1, vKnightRight = 1 and field:
["$->1111","1111
<-P"]
: expected [ '11$->11', '11<-P11' ] to deeply equal [ '1$->111', '111<-P1' ]
for vKnightLeft = 1, vKnightRight = 1 and field:
["$->11111","11111<-P"]
: expected [ '1$->1111', '1111<-P1' ] to deeply equal [ '11$->111', '111<-P11' ]
i dont understand why these tow exaples are different?
Your solution, for some reason, returns
undefined
, and this confuses tests.To avoid this error, make sure your solution always returns something.
TypeError: Cannot read property 'sort' of undefined
and my solution runs good at vscode
Do you know what
890625n
is?Do you know what big integers are in JS?
EDIT: OH I am stupid, and the kata is Ruby only.
how do i solve this ? expected '890625n' to equal 890625n