Skip to content

Commit 119af5e

Browse files
committed
add comment
1 parent add3803 commit 119af5e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

go/linked_list_cycle.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//lint:file-ignore U1000 Ignore all unused code
22
package main
33

4+
// `https://github.com/ryo-devz/LeetCode/pull/1#discussion_r1710718113`に書かれているとおり、印をつける方法はデメリットが大きい
45
func hasCycle(head *ListNode) bool {
56
fast, slow := head, head
67
for fast != nil && fast.Next != nil {

0 commit comments

Comments
 (0)