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

Struct TreeNode

tasks/101.go:7–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5}
6
7type TreeNode struct {
8 Val int
9 Left *TreeNode
10 Right *TreeNode
11}
12
13func isSymmetric(root *TreeNode) bool {
14 return areSymmetricNodes(root.Left, root.Right)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected