You are right, Thanks for pointing it out. Judge has weak test cases.
only 2 lines.
No one has replied
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.