@linfongi Thanks, I have added your test case.
No one has replied
Well..... seems this question can accept a long time solution but cannot stand a momery unfriendly solution
Maybe a good solution, but a terrible post. It's not at all obvious why this should work, and there's not even the slightest attempt to explain it.
Ha, nice, I've actually read that Go article a while ago :-)
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.