• + 0 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

    `