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 7566094 commit b4b5301Copy full SHA for b4b5301
problems/linked-list-cycle/linked_list_cycle.go
@@ -15,8 +15,6 @@ func hasCycle(head *ListNode) bool {
15
if p2 = p2.Next.Next; p1 == p2 {
16
return true
17
}
18
- } else {
19
- return false
20
21
22
return false
0 commit comments