I think the OJ is wrong about judging my answer.
It keeps giving me the time limit exceeded message. But I tried that input in run code mode, and it can give the right answer.
My answer runs correctly in the “run code” mode, even with the case that "fails" me in the submission.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.