• + 0 comments

    Nice solution. Here is the sorting with a lambda function

    sort(begin(numbers), end(numbers), [](string &a, string &b) {
            return a.size() < b.size() || a.size() == b.size() && a < b;
        });