c++ – Vector sort

Question:

How to sort a vector in descending order using standard algorithms?

Answer:

std::sort(v.rbegin(), v.rend());
Scroll to Top