Skip to content

Commit 932bae0

Browse files
Update reverse-linked-list-iterative.py
1 parent 77e00c4 commit 932bae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recursion/reverse-linked-list-iterative.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ def __init__(self, val=0, next=None):
44
self.next = next
55

66

7-
def reverse_list(self, head: ListNode) -> ListNode:
7+
def reverse_list(head: ListNode) -> ListNode:
88
if head is None or head.next is None:
99
return head
1010

0 commit comments

Comments
 (0)