You are viewing a single comment's thread. Return to all comments →
This task has the most lack of understandable description in easy way, through 75 of previous tasks. c++
void countSort(vector<vector<string>> arr) { const int n = arr.size(); multimap<int, string> m; for (int i = 0; i < n; ++i) { m.emplace(stoi(arr[i][0]), i < n / 2 ? "-" : arr[i][1]); } for (const auto& p : m) { cout << p.second << ' '; } }
Seems like cookies are disabled on this browser, please enable them to open this website
The Full Counting Sort
You are viewing a single comment's thread. Return to all comments →
This task has the most lack of understandable description in easy way, through 75 of previous tasks. c++