Counting Sort 1

  • + 0 comments

    vector countingSort(vector arr) {

    vector<int> vect(100);
    
    for(int& a : arr){
        vect[a]++;
    }
    return vect;
    

    }