How would I sort a vector of strings by the size of the string? pal is a vector containing strings. I call sort using the function greater to sort the strings by size.
Code:psuedocode: sort(pal.begin(), pal.end(), greater); ................................. bool greater(string a, string b) { int i, j; i = a.size(); j = b.size(); return i > j; }