原题地址:http://oj.leetcode.com/problems/balanced-binary-tree/题意:判断一颗二叉树是否是平衡二叉树。解题思路:在这道题里,平衡二叉树的定义是二叉树的任意节点的两颗子树之间的高度差小于等于1。这实际上是AVL树的定义。首先要写一个计算二叉树高度的函...
分类:
编程语言 时间:
2014-05-12 14:51:47
阅读次数:
304
原题地址:http://oj.leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/题意:根据二叉树的先序遍历和中序遍历恢复二叉树。解题思路:可以参照http://www.cnblogs.com...
分类:
编程语言 时间:
2014-05-12 14:24:57
阅读次数:
324
原题地址:http://oj.leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/题意:根据二叉树的中序遍历和后序遍历恢复二叉树。解题思路:看到树首先想到要用递归来解题。以这道题为例:如果一...
分类:
编程语言 时间:
2014-05-12 14:09:28
阅读次数:
321
将Mac OS X下的目录共享到Paralles后,source
insight创建工程。但是当再次打开时却打开失败。提示:there was an error opening
project网上对此问题的介绍主要是针对Linux、Samba的,说:1. 权限问题,修改共享目录及其文件权限为读写执行...
分类:
其他好文 时间:
2014-05-12 13:24:18
阅读次数:
493
原题地址:http://oj.leetcode.com/problems/binary-tree-inorder-traversal/题意:二叉树的中序遍历。解题思路:这道题用递归解不难,所以应该考察的是非递归求解二叉树的中序遍历。我们使用一个栈来解决问题。比如一颗二叉树为{1,2,3,4,5,6,...
分类:
编程语言 时间:
2014-05-12 12:48:36
阅读次数:
316
题目描述There is a grid size of 1*N. The spanning tree
of the grid connects all the vertices of the grid only with the edges of the
grid, and every vertex...
分类:
其他好文 时间:
2014-05-10 19:00:03
阅读次数:
337
首先需将要更改的datawindow关闭,然后选中该datawindow,右键——》edit
source,可以看到 processing=value如果value为 0, 则为freeForm格式,如果为1,则为grid
格式。如果是要新建一个一模一样的,可以【菜单】-【另存为】
C++异常:no matching function for call to
"Matrix(Matrix&)"我定义了一个类叫Matrix,其中构造函数explicit Matrix(const Matrix&
source);也写了一个方法:Matrix Matrix::myFun(const ...
分类:
编程语言 时间:
2014-05-10 07:16:04
阅读次数:
363
set conn=server.CreateObject("adodb.connection")
set rs=server.CreateObject("adodb.recordset")
cnpath="data source=" & server.MapPath("question.mdb")
conn.open "provider=microsoft.jet.oledb.4.0;...
分类:
其他好文 时间:
2014-05-10 04:59:38
阅读次数:
304
1、环境描述
一台10.0.0.201SQL节点、管理节点
一台10.0.0.202做一个数据节点
一台10.0.0.203做一个数据节点
2、安装Mysql_custter
在MGM管理节点、SQL节点、NDB节点执行同一操作
#:groupaddmysql
#:useraddmysql-gmysql-s/sbin/nologin
#:tar–xvfmysql-cluster-gpl-7.1.15-l..
分类:
数据库 时间:
2014-05-10 03:57:21
阅读次数:
473