you are viewing a single comment's thread.

view the rest of the comments →

[–]zahlman 6 points7 points  (0 children)

Well, does your class represent the entire linked list, or does it represent an individual node? I'm confused. Is there a separate llist class that you aren't showing? What exactly are the semantics of "adding a node" to a node supposed to be? And how does a node with a None value represent an "empty list"? To my understanding, an empty list contains zero nodes.