AC code looks simple and time O(n) if STL does't fail me. advice appreciated.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.