动态查找树主要有:二叉查找树(Binary Search Tree),平衡二叉查找树(Balanced Binary Search Tree),红黑树 (Red-Black Tree ),B-tree/B+-tree/ B*-tree (B~Tree)。前三者是典型的二叉查找树结构,其查找的时间复杂...
分类:
其他好文 时间:
2015-06-02 19:44:10
阅读次数:
249
1:错误日志大量错误150602 14:40:02 [Warning] Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. INSERT... SELEC...
分类:
数据库 时间:
2015-06-02 17:08:12
阅读次数:
175
RPM是RedHat Package Manager(RedHat软件包管理工具)类似Windows里面的“添加/删除程序”rpm 执行安装包二进制包(Binary)以及源代码包(Source)两种。二进制包可以直接安装在计算机中,而源代码包将会由RPM自动编译、安装。源代码包经常以src.rpm作...
分类:
其他好文 时间:
2015-06-02 15:09:48
阅读次数:
138
题目:Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.代码:class Solution {public: ...
分类:
其他好文 时间:
2015-06-02 12:45:56
阅读次数:
119
Given inorder and postorder traversal of a tree, construct the binary tree.
给定一个二叉树的后序和中序遍历,重建这棵二叉树。
此题和LeetCode105 根据前序和中序重建二叉树类似。
所谓后序遍历,即先访问根的左、右子树,然后再访问根节点。这样根节点在二叉树后序遍历的最后一个个元素。
所谓中序遍...
分类:
其他好文 时间:
2015-06-01 22:48:13
阅读次数:
126
Given a binary tree, return the inorder traversal of its nodes’ values.For example:
Given binary tree {1,#,2,3},1
\
2
/
3return [1,3,2].
题目要求对二叉树进行非递归的中序遍历,所谓前序遍历即,先访问左子树、再访问根节点、然...
分类:
其他好文 时间:
2015-06-01 22:47:56
阅读次数:
137
Given a binary tree, return the preorder traversal of its nodes’ values.For example:
Given binary tree {1,#,2,3},1
\
2
/
3return [1,2,3].Note: Recursive solution is trivial, could...
分类:
其他好文 时间:
2015-06-01 22:47:38
阅读次数:
128
Binary Tree Preorder Traversal:https://leetcode.com/problems/binary-tree-preorder-traversal/
Binary Tree Inorder Traversal :https://leetcode.com/problems/binary-tree-inorder-traversal/
Binary Tree Po...
分类:
其他好文 时间:
2015-06-01 22:45:30
阅读次数:
137
http://www.lintcode.com/en/problem/remove-node-in-binary-search-tree/# Given a root ofBINARY Search Tree with unique value for each node. Remove the n...
分类:
其他好文 时间:
2015-06-01 18:46:58
阅读次数:
87
No.67 Add BinaryGiven two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100". 与No.2 Add Two Numbers的思路非常相似,....
分类:
其他好文 时间:
2015-06-01 18:46:22
阅读次数:
110