码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
【430】BST and Splay Tree
参考:Hello, Splay! 目录: 1. Binary Search Tree 2. Splay Tree ...
分类:其他好文   时间:2019-08-10 09:47:46    阅读次数:71
[动态规划] leetcode 96 Unique Binary Search Trees
problem:https://leetcode.com/problems/unique-binary-search-trees/ 左子树个数 * 右子树个数 ...
分类:其他好文   时间:2019-08-09 23:57:48    阅读次数:176
Breadth First Search VS Depth First Search (Algorithms)
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 分) 1127 ZigZagging on a Tree (30 分) Suppose that all the keys in a binary tree are dist ...
分类:其他好文   时间:2019-08-09 01:49:30    阅读次数:115
650. Find Leaves of Binary Tree
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
[leetCode]543. 二叉树的直径
题目 给定一棵二叉树,你需要计算它的直径长度。一棵二叉树的直径长度是任意两个结点路径长度中的最大值。这条路径可能穿过根结点。 示例 : 给定二叉树 1 / \ 2 3 / \ 4 5 返回?3, 它的长度是路径 [4,2,1,3] 或者?[5,2,1,3]。 注意:两结点之间的路径长度是以它们之间边 ...
分类:其他好文   时间:2019-08-08 00:44:10    阅读次数:171
MySQL CAST与CONVERT 函数的用法
MySQL 的CAST()和CONVERT()函数可用来获取一个类型的值,并产生另一个类型的值。两者具体的语法如下: 就是CAST(xxx AS 类型), CONVERT(xxx,类型)。 可以转换的类型是有限制的。这个类型可以是以下值其中的一个: 二进制,同带binary前缀的效果 : BINAR ...
分类:数据库   时间:2019-08-08 00:32:35    阅读次数:146
『题解』Codeforces9D How many trees?
"更好的阅读体验" 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
【Leetcode_easy】993. Cousins in Binary Tree
problem 993. Cousins in Binary Tree 参考 1. Leetcode_easy_993. Cousins in Binary Tree; 完 ...
分类:其他好文   时间:2019-08-07 19:16:28    阅读次数:68
【MySQL】数据类型之字符相关 -- 2019-08-07 10:35:07
原创: 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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!