educative.io

Educative

Example expected result wrong

In the example, in expected output, we see:

(2, 5)

But by the fact we’ll get:

(1, 6)

At least, If run the code example from Try it yourself in JS