You are viewing a single comment's thread. Return to all comments →
bool comparator(string first, string second) { if (first.length() != second.length()) { return first.length() < second.length(); } else { return first < second; } } vector<string> bigSorting(vector<string> unsorted) { sort(unsorted.begin(), unsorted.end(), comparator); return unsorted; }
Seems like cookies are disabled on this browser, please enable them to open this website
Big Sorting
You are viewing a single comment's thread. Return to all comments →