Created
June 19, 2022 02:32
-
-
Save wanderindev/6faff931d2f3a4ee4f664f19c6b385a5 to your computer and use it in GitHub Desktop.
This file contains 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
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