Re:Applying the Linus Torvalds “Good Taste” Coding Requirement
by jsli on Wednesday October 26, 2016 @11:19AM
(#12797130)
Define obvious. At least the pointer pointer version is obvious to me in this task.
Pointer pointer can't be applied everywhere. If you try to reverse a linked list in O(n) time with O(1) space using a pointer pointer, the code would be less obvious than using a prev pointer.
Pointer pointer can't be applied everywhere. If you try to reverse a linked list in O(n) time with O(1) space using a pointer pointer, the code would be less obvious than using a prev pointer.