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.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
* type ListNode struct {
* Val int
* Next *ListNode
* }
*/
func hasCycle(head *ListNode) bool {