Skip to content

Commit fba1c5d

Browse files
committed
refactoring
1 parent 87494b3 commit fba1c5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: data_structures/linked_list/remove_nth_node_from_end.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def remove(head, n):
2121
return extra.next
2222

2323

24-
def print_list(head):
24+
def print_list(head: Node) -> None:
2525
curr = head
2626
while curr:
2727
print(curr.val, end=" ")

0 commit comments

Comments
 (0)