You are viewing a single comment's thread. Return to all comments →
Why do you do
cnt[freq[value]] -= 1
and
cnt[freq[value]] +=1
before and after actions 1 and 2? Why do they not cancel out?
Seems like cookies are disabled on this browser, please enable them to open this website
Frequency Queries
You are viewing a single comment's thread. Return to all comments →
Why do you do
and
before and after actions 1 and 2? Why do they not cancel out?