aboutsummaryrefslogtreecommitdiff
path: root/HackerRank/CountingSort1/CountingSort1.cpp
blob: 20b476a6309c19d59b2f628fdaf5d9f537bab2fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include<bits/stdc++.h>

using namespace std;

int main() {
  int n, x;
  cin >> n;
  vector<int> v;
  vector<int> freq(100);
  for(int i = 0; i < n; i ++){
    cin >> x;
    freq[x]+=1;
  }
  for(auto m : freq){
    cout << m << " ";
  }
  cout << endl;
  return 0;
}