You are viewing a single comment's thread. Return to all comments →
int pairs(int k, vector arr) { unordered_map container; for(int i = 0; i < arr.size(); i++) { container[arr[i]]++; } int count = 0;
Seems like cookies are disabled on this browser, please enable them to open this website
Pairs
You are viewing a single comment's thread. Return to all comments →
int pairs(int k, vector arr) { unordered_map container; for(int i = 0; i < arr.size(); i++) { container[arr[i]]++; } int count = 0;