2022.3.15
反转二叉树
输入
/ 2 7 / \ / 1 3 6 9 输出
/ 7 2 / \ / 9 6 3 1 节点的构造函数 /**
Definition for a binary tree node.
function TreeNode(val, left, right) {
} */
最后更新于
这有帮助吗?
反转二叉树
输入
/ 2 7 / \ / 1 3 6 9 输出
/ 7 2 / \ / 9 6 3 1 节点的构造函数 /**
Definition for a binary tree node.
function TreeNode(val, left, right) {
} */
最后更新于
这有帮助吗?