3 ms·
What if you end up at head+1, not head?
by smcl 7y ago
What if you end up at head+1, not head?
- pps43 7y agoHow would you end up there? With a loop, head+1 would point to head after the first pass, so you'll end up at the head. With no loop, head+1 would only be passed once.