A tip for c++ programmers: don't use static variables here


  • 4
    X

    As the static variables are only initialized once during one run, which apparently includes multiple test cases.


Log in to reply
 

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