If I replace this sentence by "m[num]>=0", leetcode shows "Output Limit Exceeded"

  • 1

    As my understanding before, the unordered_map<int,int> is a map from integer to another integer. So the key integer will increase but not keep static?

  • 0

    I was not very clear about "The key integer will increase but not..."? In fact, the key value will always keep static. My misunderstanding?

Log in to reply

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