same is true for JavaScript, probably others
(fixed and / or random tests should be adapted to guarantee to fail such solutions)
Your code is not correct. It returns wrong answers when the missing number is between sequence[0] and sequence[1], for example [1, 3, 4] or [7, 13, 16].
sequence[0]
sequence[1]
[1, 3, 4]
[7, 13, 16]
my code is correct but it is still showing that it is wrong.. i reverified the failed tests in my vs- code and it was working properly !!
Loading collection data...
same is true for JavaScript, probably others
(fixed and / or random tests should be adapted to guarantee to fail such solutions)
Your code is not correct. It returns wrong answers when the missing number is between
sequence[0]
andsequence[1]
, for example[1, 3, 4]
or[7, 13, 16]
.my code is correct but it is still showing that it is wrong.. i reverified the failed tests in my vs- code and it was working properly !!