diff --git a/leetcode/0141.Linked-List-Cycle/141. Linked List Cycle.go b/leetcode/0141.Linked-List-Cycle/141. Linked List Cycle.go index 10eebf0b..127d6c1c 100644 --- a/leetcode/0141.Linked-List-Cycle/141. Linked List Cycle.go +++ b/leetcode/0141.Linked-List-Cycle/141. Linked List Cycle.go @@ -19,7 +19,7 @@ type ListNode = structures.ListNode func hasCycle(head *ListNode) bool { fast := head slow := head - for slow != nil && fast != nil && fast.Next != nil { + for fast != nil && fast.Next != nil { fast = fast.Next.Next slow = slow.Next if fast == slow {