()
| 3 | import "fmt" |
| 4 | |
| 5 | func main() { |
| 6 | head := &ListNode{ |
| 7 | Val: 1, |
| 8 | Next: &ListNode{ |
| 9 | Val: 2, |
| 10 | Next: &ListNode{ |
| 11 | Val: 2, |
| 12 | Next: &ListNode{ |
| 13 | Val: 1, |
| 14 | Next: nil, |
| 15 | }, |
| 16 | }, |
| 17 | }, |
| 18 | } |
| 19 | fmt.Print(isPalindrome(head)) |
| 20 | } |
| 21 | |
| 22 | type ListNode struct { |
| 23 | Val int |
nothing calls this directly
no test coverage detected