Prev stays put after a bypass.
transcript
Remove every seven from the cart. The code runs. No error. But a seven is still there. One cursor moved too soon. A small bug, and a quiet one.
A cart with three sevens. Prev is the last kept node. Curr is the next to inspect. Remove each seven.
The first seven matches. Four points past it. Prev stays on four. The next seven hangs from four. Every match is skipped cleanly.
Now prev moves every time. It lands on the first seven. The next bypass edits that node. The chain never changes. One cursor moved too early.
Correct: four, two. With the bug: four, seven, two. A seven survives. No error. Only a wrong chain.
A match is bypassed. Prev stays still. A kept node moves prev. Test with a run of matches.
Prev moves for kept nodes. Try three matches in a row. It catches this bug. Check your own loop now. Full breakdown in the lecture.