Skip to content

Instantly share code, notes, and snippets.

@onelharrison
Created April 19, 2020 17:02
Show Gist options
  • Select an option

  • Save onelharrison/e48f1e7cc4cb7086f6706ef7be24b242 to your computer and use it in GitHub Desktop.

Select an option

Save onelharrison/e48f1e7cc4cb7086f6706ef7be24b242 to your computer and use it in GitHub Desktop.
Definition of a linked list node
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