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
题意: 在一个w*h宽的矩形中有些位置有树有些位置没有,然后我们需要从中选一个s*t的矩形,使得里面含有的树最多.
思路: 我们将有树位置的值看成1,其它为0,然后成了选一个区域值最大.然后考虑这个问题的一维形式,在一维的情况下,我们很容易得到一个方案:先处理前缀和,然后就可以枚举区间端点的起点,O(1)时间计算区间和,然后取其中的最大值为答案.
这道题我们可以按同样的思路来做,先求出(1,1)...
分类:
其他好文 时间:
2015-06-02 13:26:21
阅读次数:
107
题目: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