Fixed definition

This commit is contained in:
Breno Baptista
2021-07-17 00:36:07 -03:00
parent f5716a22aa
commit c8aa2a477e

View File

@ -9,11 +9,10 @@ type ListNode = structures.ListNode
/** /**
* Definition for singly-linked list. * Definition for singly-linked list.
* struct ListNode { * type ListNode struct {
* int val; * Val int
* ListNode *next; * Next *ListNode
* ListNode(int x) : val(x), next(NULL) {} * }
* };
*/ */
func hasCycle(head *ListNode) bool { func hasCycle(head *ListNode) bool {