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.
wow, so good
This comment is hidden because it contains spoiler information about the solution
This is Javascript haha
Try 100-codePointAt(0)
что-то на церковном
This comment is hidden because it contains spoiler information about the solution
The two knights have not collided in your output.
You must use markdown to format logs, just like you would do for code, because consecutive spaces are not printed properly, see there: https://docs.codewars.com/training/troubleshooting/#post-discourse
I see the similar question below, but don't see the solution.
Please tell me why my result is wrong?
for vKnightLeft = 1, vKnightRight = 1 and field:
["$->11111","11111<-P"]
: expected [ '1$->1111', '1111<-P1' ] to deeply equal [ '11$->111', '111<-P11' ]
Because of that ^
JS
Could someone explain why it is correct order?
1:gg/2:ee/2:ff/2:ii/2:oo/2:rr/2:ss/2:tt
I use codePointAt
'g' is 103,
'e' is 101,
'i' is 105,
'o' is 111,
That would be true if the string was
"abcabc"
.could someone explain why it is worng
initial string is "abcoabc"
expected [ 'abc', 2 ] to deeply equal [ 'abcoabc', 1 ]
.
Loading more items...