3 ms·
>The standard CS101 approach makes use of two traversal pointers cur and prev times has changed. Back then the indirect was the standard approach (in particula
by trhway 6y ago
>The standard CS101 approach makes use of two traversal pointers cur and prev
times has changed. Back then the indirect was the standard approach (in particular you wouldn't want to waste registers). It requires just a bit more complicated reasoning, and the CS and the people in it were just a bit closer to math back then. Today it is basic engineering/craft, and thus the standard is the much simpler for reasoning approach with simple pointers and the simple explicit special case handling - ie our modern enterprise C code.