by thaumasiotes · 8y ago · 0 comments
I'm not sure what you mean by complaining about a magic, invisible head to the linked list. If you can't access the head of a linked list, you can't access any other part of it either.
However, as another comment points out elsewhere in the thread, there is a bigger problem -- the solution offered uses more than one pass.