Frequency Queries

  • + 1 comment

    Whats the use of this line please make me understand

    if(elem > 0) { // b was already present. second[elem]--; }