安装环境:集群名pxc_lk节点1:192.168.1.20节点2:192.168.1.21节点3:192.168.1.22所有节点安装wgethttp://www.percona.com/redir/downloads/XtraBackup/LATEST/binary/redhat/6/x86_6...
分类:
数据库 时间:
2014-10-07 19:53:44
阅读次数:
366
Mod TreeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 96 Accepted Submission(s): 38Problem Desc...
分类:
其他好文 时间:
2014-10-07 18:21:23
阅读次数:
209
问题: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identic...
分类:
其他好文 时间:
2014-10-07 17:55:43
阅读次数:
127
struct TreeNode{ int val; TreeNode* left; TreeNode* right; TreeNode(int val):val(val),left(NULL),right(NULL){}};Not all binary trees are bina...
分类:
其他好文 时间:
2014-10-07 15:02:23
阅读次数:
221
过去只是人生经历,并不是人生负担[问题描述]Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below bi...
分类:
其他好文 时间:
2014-10-07 13:47:03
阅读次数:
195
问题一:ubuntu eclipse c++ launch failed binary not found
解决:建完项目后 查看在项目中是不是有debug文件夹,说明没有编译,只是需要做如下操作 Project ->Build Poject 构建项目,这是应该会出现debug文件,这时你的程序就可以运行了...
分类:
系统相关 时间:
2014-10-07 10:02:53
阅读次数:
148
大象放入冰箱几步的思路处理这问题就好了
1.把左子树弄平, 2. 插入到根节点和根节点的右子树之间,3. 重复1,2
思路不难,代码上有点混乱,细节实现是:把root的左子树弄成flatten的 flatten(root.left),把右子树保存起来 temp=root.right,让root.right=root.left, 然后断掉左边,root.left=null.
然后一直走到右边的...
分类:
其他好文 时间:
2014-10-07 06:20:13
阅读次数:
194
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".类似模拟十进制加法 1 class Solution { 2 public: 3 st...
分类:
其他好文 时间:
2014-10-07 00:00:40
阅读次数:
165
题目链接:http://poj.org/problem?id=2499思路: 结点向左边移动时结点(a, b)变为( a+b, b),向右边移动时( a, b )变为( a, a + b); 为求最短路径,考虑从已经知道的结点(a, b)开始找出最短路径回到根节点(1, 1); 即向左移动次数...
分类:
其他好文 时间:
2014-10-06 23:44:30
阅读次数:
166
题意:
给出一个无向图,每条边都已染色(黑/白),问是否存在生成树,该生成树的白色边的数量是正的fibonacci数。
分析:
所给数据中黑边为0,白边为1,那么生成树的白边数量即为生成树的权和。
然后YY了一个做法:求其最小和最大生成树,如果在这个范围内存在fibonacci数则存在。
靠谱的证明方法一直没想出来,这里随便解释下:
对于任意一颗非最大生成树,一定可以取一条白边换一条黑边使其仍然是一颗树。...
分类:
其他好文 时间:
2014-10-06 22:01:01
阅读次数:
208