Skip to content

Commit c8aa2a4

Browse files
committed
Fixed definition
1 parent f5716a2 commit c8aa2a4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

leetcode/0141.Linked-List-Cycle/141. Linked List Cycle.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ type ListNode = structures.ListNode
99

1010
/**
1111
* Definition for singly-linked list.
12-
* struct ListNode {
13-
* int val;
14-
* ListNode *next;
15-
* ListNode(int x) : val(x), next(NULL) {}
16-
* };
12+
* type ListNode struct {
13+
* Val int
14+
* Next *ListNode
15+
* }
1716
*/
1817

1918
func hasCycle(head *ListNode) bool {

0 commit comments

Comments
 (0)