For those of you whose solution passes one test but not the others, I had the same issue. My problem was my solution did not reset the state of all the variables it uses each time it is run. The tests here run the solution multiple times without resetting the environment, so it passed the first time, but not subsequent times.
For those of you whose solution passes one test but not the others, I had the same issue. My problem was my solution did not reset the state of all the variables it uses each time it is run. The tests here run the solution multiple times without resetting the environment, so it passed the first time, but not subsequent times.