Grokking Meta Coding Interview
Ask Author
Back to course home

0% completed

Vote For New Content
Ali Simsek
Test case expected output is wrong

Ali Simsek

Feb 6, 2025

for the input [1,2,3,4,5,6,7] expected output should be [1,3,7] as it's given in the example but when run the test cases, expected output seems that [1,3,5] which is wrong.

2

0

Comments
Comments
Roman Kishchenko
Roman Kishchenko8 months ago

It's even more confusing because the output seems to be affected by the other test cases.

If I use just as the test case, it returns the correct output ([1,3,7]).

However, with the following test cases:

[1,2,3,4,5,6,7] [12,7,1,null,9,10,5,null,3] ...

On this page