You are viewing a single comment's thread. Return to all comments →
Could someone explain me why increment counter like this:
count += buckets[key] * (buckets[key]-1) // 2
instead of:
count += buckets[key]//2
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Anagrams
You are viewing a single comment's thread. Return to all comments →
Could someone explain me why increment counter like this:
instead of: