MCPcopy Create free account
hub / github.com/VanjaRo/LeetCode / main

Function main

tasks/234.go:5–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import "fmt"
4
5func 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
22type ListNode struct {
23 Val int

Callers

nothing calls this directly

Calls 2

PrintMethod · 0.80
isPalindromeFunction · 0.70

Tested by

no test coverage detected