参考:Hello, Splay! 目录: 1. Binary Search Tree 2. Splay Tree ...
分类:
其他好文 时间:
2019-08-10 09:47:46
阅读次数:
71
problem:https://leetcode.com/problems/unique-binary-search-trees/ 左子树个数 * 右子树个数 ...
分类:
其他好文 时间:
2019-08-09 23:57:48
阅读次数:
176
First lets recall the concept for BFS and DFS. I will use below Binary Tree as an example. Before that, lets go through some of the concepts of Trees ...
分类:
其他好文 时间:
2019-08-09 17:37:01
阅读次数:
94
1127 ZigZagging on a Tree (30 分) 1127 ZigZagging on a Tree (30 分) 1127 ZigZagging on a Tree (30 分) Suppose that all the keys in a binary tree are dist ...
分类:
其他好文 时间:
2019-08-09 01:49:30
阅读次数:
115
class Solution { public: vector> findLeaves(TreeNode* root) { vector> res; while (root) { vector leaves; root = remove(root, leaves); res.p... ...
分类:
其他好文 时间:
2019-08-09 01:39:10
阅读次数:
94
题目 给定一棵二叉树,你需要计算它的直径长度。一棵二叉树的直径长度是任意两个结点路径长度中的最大值。这条路径可能穿过根结点。 示例 : 给定二叉树 1 / \ 2 3 / \ 4 5 返回?3, 它的长度是路径 [4,2,1,3] 或者?[5,2,1,3]。 注意:两结点之间的路径长度是以它们之间边 ...
分类:
其他好文 时间:
2019-08-08 00:44:10
阅读次数:
171
MySQL 的CAST()和CONVERT()函数可用来获取一个类型的值,并产生另一个类型的值。两者具体的语法如下: 就是CAST(xxx AS 类型), CONVERT(xxx,类型)。 可以转换的类型是有限制的。这个类型可以是以下值其中的一个: 二进制,同带binary前缀的效果 : BINAR ...
分类:
数据库 时间:
2019-08-08 00:32:35
阅读次数:
146
"更好的阅读体验" Portal Portal1: "Codeforces" Portal2: "Luogu" <! more Description In one very old text file there was written Great Wisdom. This Wisdom was ...
分类:
其他好文 时间:
2019-08-07 22:44:04
阅读次数:
145
problem 993. Cousins in Binary Tree 参考 1. Leetcode_easy_993. Cousins in Binary Tree; 完 ...
分类:
其他好文 时间:
2019-08-07 19:16:28
阅读次数:
68
原创: http://106.13.73.98/__/26/ 目录 字符类型 char类型 varchar类型 实测 总结 枚举类型与集合类型 字符类型 官网:https://dev.mysql.com/doc/refman/5.7/en/char.html注意:char与varchar括号内的参数 ...
分类:
数据库 时间:
2019-08-07 10:48:58
阅读次数:
122