题目:
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 identical and the nodes have the same value....
分类:
其他好文 时间:
2014-10-25 23:09:06
阅读次数:
447
找到,返回下標;
int binary_search(const int* a, int low_position, int high_position, const int key)
{
high_position--;
while(low_position < high_position) {
int mid_position = (low_position+...
分类:
其他好文 时间:
2014-10-25 23:04:40
阅读次数:
155
计算几何: 堆几何模版就可以了。。。。
Description
Problem E
2D Geometry 110 in 1!
This is a collection of 110 (in binary) 2D geometry problems.
CircumscribedCircle x1 y1 x2 y2 x3 y3
Fi...
分类:
其他好文 时间:
2014-10-25 22:59:03
阅读次数:
246
MAC上,安装p_w_picpathmagic:下载:http://www.p_w_picpathmagick.org/script/binary-releases.php#macosx安装:Create(orchoose)adirectorytoinstallthepackageintoandchangetothatdirectory,forexample:$cd$HOMENext,extractthecontentsofthepackage.Forexample:$tarxvzfIm..
分类:
系统相关 时间:
2014-10-25 18:54:49
阅读次数:
672
题目
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node....
分类:
其他好文 时间:
2014-10-25 18:50:01
阅读次数:
137
题目地址:Ural 1081
先用dp求出每个长度下的合法序列(开头为1)的个数。然后求前缀和。会发现正好是一个斐波那契数列。然后每次判断是否大于此时长度下的最少个数,若大于,说明这一位肯定是1,若小于,则肯定是0.就这样不断输出出来即可。
代码如下:
#include
#include
#include
#include
#include
#include
#include
...
分类:
其他好文 时间:
2014-10-24 23:40:46
阅读次数:
312
计划制作一个背单词的web应用,很不顺利的找到了资源,拿到的是.bak文件,导入到sqlserver倒是简单,现在我想把数据导到mongolab,遇到了一些坑,特地记录下来(老了,记不住啊)mongolab 支持binary,json,csv所以我将数据导出成.csv1.数据库--任务--导出数据2...
分类:
数据库 时间:
2014-10-24 20:24:52
阅读次数:
372
(1)android.app.Fragment:兼容的最低版本是android:minSdkVersion="11"
因此你的应用不能兼容3.0以下的应用。
可以使用标签的,这点很重要,如果是用android.support.v4.app.Fragment的话,是不能是用标签的,会抛出android.view.InflateException: Binary XML file line...
分类:
移动开发 时间:
2014-10-24 18:54:47
阅读次数:
142
问题描述:
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
For example,
Given n = 3, there are a total of 5 unique BST's.
1 3 3 2...
分类:
其他好文 时间:
2014-10-24 16:33:10
阅读次数:
117
1.Link Binary With Libraries 中添加libz.dyllb2.复制OpenSSL(libssl.a & libcryto.a &NSData+CocoaDevUsersAdditions.h &NSData+CocoaDevUsersAdditions.m)到文件目录中,并...
分类:
其他好文 时间:
2014-10-24 16:03:05
阅读次数:
119