You are viewing a single comment's thread. Return to all comments →
vector<string> bigSorting(vector<string> unsorted) { std::sort(unsorted.begin(), unsorted.end(), [](const string& lhs, const string& rhs){ return lhs.length() == rhs.length() ? lhs < rhs : lhs.length() < rhs.length(); }); 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 →