After the swap, mid stays.
transcript
Three pointers group a belt in one pass. One rule decides if it works. After a swap with high, mid stays.
A zero swaps with low. Both pointers move on. A one stays. Mid moves on. A two swaps with high. Only high moves back.
Take three parcels: two, one, two. Mid sees a two. It swaps with the two at high. High moves back. Index 0 still holds a two.
Suppose mid moves on anyway. Nobody checks the two at index 0. The belt ends as two, one, two. Economy comes first.
Now let mid stay and check the two again. It swaps with index 1, and a one comes back. The one stays. The belt reads one, two, two.
A swap with low brings back a checked value. A swap with high brings back an unchecked one. So mid waits, and every parcel is still checked once.
Full breakdown in the lecture.