4 ms·
There's a compromise enterprise developers should recognize from CS classes that's almost elegant enough for the kernel crowd: use a sentinel node for the eleme
by firethief 10y ago
There's a compromise enterprise developers should recognize from CS classes that's almost elegant enough for the kernel crowd: use a sentinel node for the element before the head. The edge case is eliminated, and no more &(*)->; ASCII Cthulhu.
- zwieback 10y agoThat was my first thought, my basic algorithms book specifically mentions sentinel as a way to eliminate the head boundary condition. Linus basic point stands although his example isn't very good.