07 2019 档案
摘要:安装步骤: 一:首先安装简版CodeBlocks sudo apt install codeblocks 二:把编译环境,C库、C++库和Boost库装好 sudo apt install build-essential 三:安装 CodeBlocks 的调试组件 Valgrind 用来探测内存泄露
阅读全文
摘要:93. 平衡二叉树 给定一个二叉树,确定它是高度平衡的。对于这个问题,一棵高度平衡的二叉树的定义是:一棵二叉树中每个节点的两个子树的深度相差不会超过1。 给定一个二叉树,确定它是高度平衡的。对于这个问题,一棵高度平衡的二叉树的定义是:一棵二叉树中每个节点的两个子树的深度相差不会超过1。 给定一个二叉
阅读全文
摘要:/** * Definition of TreeNode: * public class TreeNode { * public int val; * public TreeNode left, right; * public TreeNode(int val) { * this.val = val; * this.left ...
阅读全文