So in my doubly linked list, I automatically made it so the (head, begin) and the (tail, end) are never the same. I see it in explanations of single linked lists too.
Why would you ever want the snake to eat it’s own tail?
Is there some reason for making the initial node the start & end instead of making the end node None so that even when there is just one node, the end can be a separate node of None that start points to?
Curious. I don’t understand why that would be a good thing.
Thanks in advance.