Problem Description

Sort vector of pairs by second element.
Real Life: Sorting students by marks, not by name.

Step-by-Step Logic:
1. Create custom comparison function
2. Pass it to sort()
3. Define your own sorting logic
4. Sort by any criteria you want

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next