2 ms·
You can just use a dummy node and track the previous entry. Then you don't have to ever pass back the front of the list, or treat the front of the list as spec
by lsiebert 14y ago
You can just use a dummy node and track the previous entry. Then you don't have to ever pass back the front of the list, or treat the front of the list as special at all.
It's more elegant then the double level pointer, imho.
- huhtenberg 14y agoHow is it more elegant if it effectively doubles the number of pointer dereferences?