MCPcopy Create free account
hub / github.com/algorithm004-01/algorithm004-01 / preorderTraversal1

Function preorderTraversal1

Week 02/id_716/LeetCode_144_716.go:14–18  ·  view source on GitHub ↗

https://leetcode-cn.com/problems/binary-tree-preorder-traversal 前序遍历 已经在 LeetCode_94_716.go 中定义了 type TreeNode struct { Val int Left *TreeNode Right *TreeNode } 1. 递归遍历

(root *TreeNode)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

preorderFunction · 0.70

Tested by

no test coverage detected