mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-02 06:46:18 -04:00
Update detect_cycle_II.py
This commit is contained in:
parent
544caafaa3
commit
f6e853a5ab
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ class Node:
|
|||
self.next = None
|
||||
|
||||
|
||||
def detect_cycle(self, head):
|
||||
def detect_cycle(head):
|
||||
|
||||
seen = set()
|
||||
node = head
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue