fixed indent issue
This commit is contained in:
@@ -60,10 +60,10 @@ class LinkedList[T]:
|
|||||||
|
|
||||||
## YOUR CODE HERE ##
|
## YOUR CODE HERE ##
|
||||||
|
|
||||||
new_node = Node(value)
|
new_node = Node(value)
|
||||||
new_node.set_next(self.head)
|
new_node.set_next(self.head)
|
||||||
self.head = new_node
|
self.head = new_node
|
||||||
self.size += 1
|
self.size += 1
|
||||||
|
|
||||||
def insert_tail(self, value: T) -> None:
|
def insert_tail(self, value: T) -> None:
|
||||||
''' adds the given T-type data value to the end of the linked list
|
''' adds the given T-type data value to the end of the linked list
|
||||||
|
|||||||
Reference in New Issue
Block a user