二叉树的前序遍历
2025-4-20
| 2025-4-20
Words 242Read Time 1 min
type
status
date
slug
summary
tags
category
icon
password

题目:

给你二叉树的根节点 root ,返回它节点值的 前序 遍历。
来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/SNJvJP 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
示例 1:
notion image
inorder_1
示例 2:
示例 3:
示例 4:
notion image
inorder_5
示例 5:
notion image
inorder_4
提示:
  • 树中节点数目在范围 [0, 100]
  • 100 <= Node.val <= 100

思路:

结果:

notion image
image-20220405095651005
二进制间距事务的隔离级别
Loading...