Skip to content

Commit 18cb262

Browse files
authored
Update Linked List Cycle - Leetcode 141.py
1 parent d766083 commit 18cb262

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Linked List Cycle - Leetcode 141.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ def hasCycle(self, head: Optional[ListNode]) -> bool:
1212
return True
1313

1414
return False
15+
16+
# Time Complexity: O(n)
17+
# Space Complexity: O(1)

0 commit comments

Comments
 (0)