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.
Hi. You are not quite right about how you perform the conversion. I'm facing the same problem.
The rule says that "A letter with adjacent letters j and t is not converted." Accordingly, the transformed sequence looks like this:
jptddwd
0 + 3 + 0 + -2 + -2 + 4 + -2 => 1
, therefore answer is "Left side wins!"Hi! I noticed that in your answer you also converted the letter
z
tos
, although I see no reason for this. I think the mistake is in this.The original sequence:
jdtqzbq
Correct sequence after conversion:
jdtpzbq
And the sum of the letters:
0 + -2 + 0 + 3 + -1 + 2 + -3 => -1
, thereforeRight side wins
I hope I helped you figure it out.
That's because you're mutating the original array in your solution.
I made a solution in TypeScript and did not pass the test, copied the same solutions for JavaScript and all the tests were passed