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