问题:给一个二叉树,写一个算法判断这个树是不是balanced。Solution
#1.第一次遇到这个问题时我的解法,如下:public class Solution { public boolean isBalanced(TreeNode
root) { if(root == ...
分类:
其他好文 时间:
2014-05-05 12:50:49
阅读次数:
263
add-ons:android开发需要的第三方文件
docs:Andriod的文档。包括开发指南、API等 extras:附件文档 platforms:一系列Andriod平台版本
platform-tools:开发工具,在平台更新时可能更新 samples:例子 temp:缓存目录 tools:独...
分类:
其他好文 时间:
2014-05-04 19:52:36
阅读次数:
535
Post-Recovery Test Run Options Screen When you
clear the Add another recovery operation check box in the Recovery Operation
screen and click next, the...
分类:
其他好文 时间:
2014-05-04 19:37:19
阅读次数:
571
Binary Stirling NumbersTime Limit:1000MSMemory
Limit:10000KTotal Submissions:1761Accepted:671DescriptionThe Stirling number of
the second kind S(n, m)...
分类:
其他好文 时间:
2014-05-04 19:34:32
阅读次数:
434
安装配置环境: os:centos
5.4 mysql:5.5.37 虚拟server1:mysql_master(192.168.40.241) 虚拟server2:mysql_slave(192.168.40.242)安装Mysql:
可参考解压后的INSTALL-BINARY,如下: shel...
分类:
数据库 时间:
2014-05-04 12:34:32
阅读次数:
516
1: /// 2: ///
修改web.config或app.config文件appSettings配置节中的Add里的value属性 3: /// 4: /// 5: ///
注意,调用该函数后,会使整个Web Application重启,导致当前所有的会话丢...
分类:
移动开发 时间:
2014-05-04 11:05:06
阅读次数:
359
最近开始使用扇贝背单词,需要将以前积累在有道单词本里的单词导入到扇贝中。然后,扇贝并没有提供生词导入功能,需要使用["批量添加功能"](http://www.shanbay.com/bdc/vocabulary/add/batch/)手动添加单词。而批量添加功能一次只能添加十个单词,近千个单词需要添...
分类:
Web程序 时间:
2014-05-04 10:59:46
阅读次数:
413
travel the binary tree by level 2 ( from top to down )
个人信息:就读于燕大本科软件工程专业 目前大三;
本人博客:google搜索“cqs_2012”即可;
个人爱好:酷爱数据结构和算法,希望将来从事算法工作为人民作出自己的贡献;
博客内容:travel the binary tree by level 2 (...
分类:
其他好文 时间:
2014-05-04 09:27:56
阅读次数:
334
travel the binary tree by level( from top to down)
个人信息:就读于燕大本科软件工程专业 目前大三;
本人博客:google搜索“cqs_2012”即可;
个人爱好:酷爱数据结构和算法,希望将来从事算法工作为人民作出自己的贡献;
博客内容:travel the binary tree by level( from top t...
分类:
其他好文 时间:
2014-05-04 09:17:12
阅读次数:
292
travel the binary tree by level 3 ( from down to top )
个人信息:就读于燕大本科软件工程专业 目前大三;
本人博客:google搜索“cqs_2012”即可;
个人爱好:酷爱数据结构和算法,希望将来从事算法工作为人民作出自己的贡献;
博客内容:travel the binary tree by level 3 ( f...
分类:
其他好文 时间:
2014-05-04 09:00:55
阅读次数:
294