From cb196b6f0fe68d42de0d990720de4546b2198681 Mon Sep 17 00:00:00 2001 From: ChinaVeryNb <1205322591@qq.com> Date: Thu, 1 Apr 2021 17:32:13 +0800 Subject: [PATCH] =?UTF-8?q?'=E6=9B=B4=E6=96=B0=E6=97=A5=E5=BF=97'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/06_linkedlist/singlyLinkedList.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/06_linkedlist/singlyLinkedList.py b/python/06_linkedlist/singlyLinkedList.py index ec090a91..12a037dc 100644 --- a/python/06_linkedlist/singlyLinkedList.py +++ b/python/06_linkedlist/singlyLinkedList.py @@ -276,7 +276,7 @@ def has_ring(self): slow = self.__head while (fast.next_node is not None) and (fast is not None): - fast = fast.next_node + fast = fast.next_node.next_node slow = slow.next_node if fast == slow: return True