题目描述:
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree is symmetric:
1
/ 2 2
/ \ / 3 4 4 3
...
分类:
其他好文 时间:
2014-11-04 17:24:06
阅读次数:
132
SVN的访问方式 Subversion 文件仓库可以通过许多不同的方式进行访问(Check Out,签出)——通过本地硬盘,或者通过各种网络协议。无论如何,文件仓库的位置总是使用 URL 来表示。下表显示了不同的 URL 模式对应的访问方法:模式访问方法file:///直接访问本地硬盘上文件仓库ht...
分类:
其他好文 时间:
2014-11-04 17:17:32
阅读次数:
271
This is an experimental technologyBecause this technology's specification has not stabilized, check thecompatibility tablefor the proper prefixes to u...
分类:
Web程序 时间:
2014-11-04 16:48:16
阅读次数:
1226
http://jc-dreaming.iteye.com/blog/754690/***判断对象是否为空*Check whether string s is empty.*/function isEmpty(s){return ((s == undefined || s == null || s =...
分类:
Web程序 时间:
2014-11-04 12:33:48
阅读次数:
150
主要原因是这个证书链失败,使用的语句:makecert -sr CurrentUser -ss My -n CN=FrankCertificate -sky signature -pe制作的是自签名的证书,不能设置为新人证书。修改sky选项为exchange,可以交换密钥。因为要导出带密钥的证书,要...
分类:
其他好文 时间:
2014-11-03 16:16:15
阅读次数:
151
Checking 'working-make'... ok.Checking 'case-sensitive-fs'... ok.Checking 'getopt'... ok.Checking 'fileutils'... ok.Checking 'working-gcc'... ok.Check...
分类:
其他好文 时间:
2014-11-03 01:19:36
阅读次数:
218
这套题做的蛋疼菊紧
250
简单题。 问一个数能否被表示 成 某个素数的若干次方
我用了一个很损精度得法
其实只要判平方完了直接枚举素数就OK
vectorans;
bool check(int x) {
int m = (int)sqrt(x * 1.0) + 1;
if(x == 2) return true;
for(int i = 2; i ...
分类:
其他好文 时间:
2014-11-03 00:07:21
阅读次数:
348
算法能力一直不好,决定利用晚上和假期时间多做点算法题,动动手,提高自己。大家看到我的水平低还望莫要嘲笑,嘻嘻。 这一题呢是LeetCode上的对称树问题, Given a binary tree, check whether it is a mirror of itself (ie, sym...
分类:
其他好文 时间:
2014-11-02 22:29:08
阅读次数:
231
错误信息:
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again....
分类:
其他好文 时间:
2014-11-01 20:34:05
阅读次数:
883
题意:比赛中有M道题,T个参赛队,pij表示第i队解出第j题的概率,
求每队至少解出一题,且冠军队至少解出N道题的概率
分析:要求每队至少解出一题,且冠军队至少解出N道题的概率
则原来的所求的概率可以转化为:
每队均至少做一题的概率P1 减去 每队做题数均在1到N-1之间的概率P2...
分类:
其他好文 时间:
2014-11-01 16:24:23
阅读次数:
111