Created
April 19, 2020 17:02
-
-
Save onelharrison/e48f1e7cc4cb7086f6706ef7be24b242 to your computer and use it in GitHub Desktop.
Definition of a linked list node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class LinkedListNode: | |
| def __init__(self, value = None, next_node = None): | |
| # stores the data for the current node | |
| self.value = value | |
| # stores a reference to the next node in the linked list | |
| self.next_node = next_node |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment