We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77e00c4 commit 932bae0Copy full SHA for 932bae0
recursion/reverse-linked-list-iterative.py
@@ -4,7 +4,7 @@ def __init__(self, val=0, next=None):
4
self.next = next
5
6
7
-def reverse_list(self, head: ListNode) -> ListNode:
+def reverse_list(head: ListNode) -> ListNode:
8
if head is None or head.next is None:
9
return head
10
0 commit comments