【题目】
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).
For example:
Given binary tree {3,9,20,#,#,15,7},
3
/ ...
分类:
其他好文 时间:
2014-12-08 10:44:51
阅读次数:
161
《High Performance MySQL》真是本经典好书,从应用层到数据库到硬件平台,各种调优技巧、常见问题全都有所提及。数据库的各种概念技巧平时都有接触,像索引、分区、Sharding等等,但要想真正提高还是得如此系统学习一下。Chapter 1: MySQL Architecture and History1.1 Transaction Isolation Level事务隔离级别真是个老...
分类:
数据库 时间:
2014-12-06 20:23:42
阅读次数:
413
Simple Redis CommandsLet's start practicing using the redis key-value store from our node application.Require theredismodule and assign it to a variab...
分类:
Web程序 时间:
2014-12-06 19:23:47
阅读次数:
288
$query = new Select();
var_dump($query->getSqlString());
数据库使用PGSQL时,$query->getSqlString()执行正常,而数据库使用mysql时,$query->getSqlString()发生错误Attempting to quote a value without specific driver level suppo...
分类:
数据库 时间:
2014-12-06 11:24:47
阅读次数:
183
解决的方案是将jdk1.7制定的版本定制为jdk.6.即在eclipse中,右键项目->Properties->Java Compiler->enable "project specific settings->Set Compiler compliance level to 1.6 re Buil...
分类:
移动开发 时间:
2014-12-05 18:49:17
阅读次数:
450
这道SQL笔试题你会怎么写(转)最近面试了一些Senior BI的候选人,行业经验三年到七年不等,起初觉得这个Level的无需准备笔试题,碍于领导执念,就在真实项目中提取5道SQL题目,这里仅单说其中一道难度中等偏下的题目,抛开面试不谈,单看笔试的话几轮下来答题情况并不理想,至今没有发现有人能写出逻...
分类:
数据库 时间:
2014-12-05 14:06:00
阅读次数:
232
由于手头上一直没有android level 17及以上版本的手机,有一个shell命令启动脚本的BUG,发生在SDK level 17及以上API>=17中加入了INTERACT_ACROSS_USERS_FULL,目的在于允许不同用户的应用之间可以产生交互,了安全,因此在交互时会校验userSe...
分类:
移动开发 时间:
2014-12-05 10:33:39
阅读次数:
1804
Route InstanceLet's rewrite our cities routes using a Route Instance.Create a newRoute Instancefor the'/cities'URL path and assign it to thecitiesRout...
分类:
其他好文 时间:
2014-12-05 00:40:40
阅读次数:
775
Using a Router InstanceLet's refactorapp.jsto use aRouterobject.Create a new router object and assign it to theroutervariable.var router = express.Rou...
分类:
其他好文 时间:
2014-12-05 00:40:24
阅读次数:
184
City SearchWe want to create an endpoint that we can use to filter cities. Follow the tasks below to to create this new route.Create a new route forGE...
分类:
Web程序 时间:
2014-12-04 19:50:26
阅读次数:
242