You are viewing a single comment's thread. Return to all comments →
int main() { int n; cin >> n; int b[100]={0}; for(int i = 0; i < n; i++){ int x; cin >> x; b[x]++; } for(int i=0;i<100;i++){ cout<<b[i]<<" "; } return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Counting Sort 1
You are viewing a single comment's thread. Return to all comments →