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


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:


My Custom Test is:

2 2 3


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