Skip to content

Commit a686182

Browse files
authored
Update Middle of the Linked List - Leetcode 876.py
1 parent 46b07a0 commit a686182

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Middle of the Linked List - Leetcode 876.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ def middleNode(self, head: Optional[ListNode]) -> Optional[ListNode]:
88
slow = slow.next
99

1010
return slow
11+
12+
# Time Complexity: O(n)
13+
# Space Complexity: O(1)

0 commit comments

Comments
 (0)