Comment by monkeyelite
Comment by monkeyelite 8 hours 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)
Comment by monkeyelite 8 hours 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)