We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent add3803 commit 119af5eCopy full SHA for 119af5e
go/linked_list_cycle.go
@@ -1,6 +1,7 @@
1
//lint:file-ignore U1000 Ignore all unused code
2
package main
3
4
+// `https://github.com/ryo-devz/LeetCode/pull/1#discussion_r1710718113`に書かれているとおり、印をつける方法はデメリットが大きい
5
func hasCycle(head *ListNode) bool {
6
fast, slow := head, head
7
for fast != nil && fast.Next != nil {
0 commit comments