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
class Node: | |
def __init__(self, value, next_node=None, prev_node=None): | |
self.value = value | |
self.next_node = next_node | |
self.prev_node = prev_node | |
def set_next_node(self, next_node): | |
self.next_node = next_node | |
def get_next_node(self): |
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
class Node: | |
def __init__(self, value, next_node=None): | |
self.value = value | |
self.next_node = next_node | |
def get_value(self): | |
return self.value | |
def get_next_node(self): | |
return self.next_node |
NewerOlder