Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/austingebauer/go-leetcode
/ inorderTraverse
Function
inorderTraverse
symmetric_tree_101/solution.go:57–64 ·
view source on GitHub ↗
(root *TreeNode, a []int)
Source
from the content-addressed store, hash-verified
55
}
56
57
func
inorderTraverse(root *TreeNode, a []int) []int {
58
if
root == nil {
59
return
a
60
}
61
62
a = append(inorderTraverse(root.Left, a), root.Val)
63
return
inorderTraverse(root.Right, a[:])
64
}
Callers
1
isSymmetricWrong
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected