Skip to content

Instantly share code, notes, and snippets.

@wanderindev
Created June 19, 2022 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wanderindev/6faff931d2f3a4ee4f664f19c6b385a5 to your computer and use it in GitHub Desktop.
Save wanderindev/6faff931d2f3a4ee4f664f19c6b385a5 to your computer and use it in GitHub Desktop.
def add_back(self, new_data: Any) -> None:
"""Add a node to the back of the linked list"""
self.get_last_node().next_node = Node(new_data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment