时月oe

博客园 首页 新随笔 联系 订阅 管理

2022年3月1日 #

摘要: (题目链接)[]https://leetcode-cn.com/problems/convert-sorted-array-to-binary-search-tree/] /** * Definition for a binary tree node. * public class TreeNode 阅读全文
posted @ 2022-03-01 20:28 时月oe 阅读(19) 评论(0) 推荐(0) 编辑

摘要: 二叉树的遍历分为 前序遍历 中序遍历 后序遍历 前序遍历 public void preTraverse(TreeNode root) { if(root != null){ System.out.print(root.value); preTraverse(root.left); preTrave 阅读全文
posted @ 2022-03-01 20:00 时月oe 阅读(13) 评论(0) 推荐(0) 编辑