You are viewing a single comment's thread. Return to all comments →
Here is my c++ solution, you can watch the explanation here : https://youtu.be/GAvltofMdYc
vector<string> bigSorting(vector<string> u) { sort(u.begin(), u.end(), [](string l, string r){ if(l.size() == r.size()) return l < r; return l.size() < r.size(); }); return u; }
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 →
Here is my c++ solution, you can watch the explanation here : https://youtu.be/GAvltofMdYc