package main import . "nc_tools" /* * type ListNode struct{ * Val int * Next *ListNode * } */ /** * * @param head ListNode类 the head * @return bool布尔型 */ func isPail( head *ListNode ) bool { if head == nil { return true } lst := []int{} for head != nil { lst = append(lst, he...