mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-05 08:27:30 +08:00
Fixed definition
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user