You are viewing a single comment's thread. Return to all comments →
bool myCmp(string s1, string s2) { return ((s1.size() == s2.size()) ? (s1 < s2) : (s1.size() < s2.size())); } vector<string> bigSorting(vector<string> unsorted) { sort(unsorted.begin(), unsorted.end(), myCmp); return unsorted; }
Big Sorting
You are viewing a single comment's thread. Return to all comments →
C++