The same test fails when "Submit" and passes when "Test with custom input"


#1

When I run my solution through “Submit” button, it fails on test:

A : 4
B : [ 2, 3 ]

But when I type this test and execute the code by “Test with custom input” it passes! How is it possible?:slight_smile:

P.S.

My Custom Test is:

4
2 2 3

#2

you must have used a global variable. make sure to initialize it in the rodCut function.