3 ms·
Interesting… I’m sure you resolved this. But the textbook solution is: 1. std::find last 2. std::iter_swap(first, found) 3. std::sort(front + 1, back)
by monkeyelite 1y ago
Interesting… I’m sure you resolved this. But the textbook solution is:
1. std::find last
2. std::iter_swap(first, found)
3. std::sort(front + 1, back)