-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
func inorderTraverSal(root *TreeNode) []int {
var result []int
inorderRecursive(root, &result)
return result
}
func inorderRecursive(root *TreeNode, output*[]int) {
if root != nil {
inorderRecursive(root.Left, output)
*output = append(*output, root.Val)
inorderRecursive(root.Right, output)
}
}Metadata
Metadata
Assignees
Labels
No labels