You are viewing a single comment's thread. Return to all comments →
Simple C++ sol using set | O(n)
`c++
int pairs(int k, vector arr) { unordered_set st; int n = arr.size(), c = 0; for (int i=0; i
`
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 →
Simple C++ sol using set | O(n)
`c++
int pairs(int k, vector arr) { unordered_set st; int n = arr.size(), c = 0; for (int i=0; i
`