Skip to content

Commit b4b5301

Browse files
committed
Update: Linked List Cycle
1 parent 7566094 commit b4b5301

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

problems/linked-list-cycle/linked_list_cycle.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ func hasCycle(head *ListNode) bool {
1515
if p2 = p2.Next.Next; p1 == p2 {
1616
return true
1717
}
18-
} else {
19-
return false
2018
}
2119
}
2220
return false

0 commit comments

Comments
 (0)