Passed public test but Error in MARS

Passing the public tests does not imply that your program is 100% correct. In particular if you get a runtime exception, then your program has a flaw regardless of the results of the public tests. Fixing it will give you a better chance at also passing the daily and eval tests.

1 Like