有n个星星,按照y坐标的升序给出n个星星的坐标,对于每一个星星,其level为在其左下方(包括正左,正下)的星星个数,输出n行,第i行代表等级为i个星星的星星的个数。树状数组的插点问段思路:a[i]存储星星的x坐标,b[i]表示0到i中x,y坐标小于i的个数,即i的等级则对于每个b[i],做一次扫描...
分类:
编程语言 时间:
2015-04-03 15:02:52
阅读次数:
126
MySQL中select * for update锁表的问题由于InnoDB预设是Row-Level Lock,所以只有「明确」的指定主键,MySQL才会执行Row lock (只锁住被选取的资料例) ,否则MySQL将会执行Table Lock (将整个资料表单给锁住)。 举个例子: 假设有个表单...
分类:
数据库 时间:
2015-04-02 01:15:06
阅读次数:
214
原文地址目录介绍(Introduction)相似点(Similarities)编译单位(Compiled Units)命名空间(Namespaces)顶层成员(类型)(Top Level Elements(Types))基础类型(Basic Types)类(Classes)结构体(Structure...
分类:
编程语言 时间:
2015-04-01 17:26:44
阅读次数:
300
Optimizing AngularJS: 1200ms to 35msBySteven CzerwinksiEdit: Due to the level of interest, we’ve released the source code to the work described here: ...
分类:
Web程序 时间:
2015-04-01 12:41:02
阅读次数:
197
Monkey命令行可用的全部选项常规--help列出简单的用法。-v命令行的每一个-v将增加反馈信息的级别。Level 0(缺省值)除启动提示、测试完成和最终结果之外,提供较少信息。Level 1提供较为详细的测试信息,如逐个发送到Activity的事件。Level 2提供更加详细的设置信息,如测试...
分类:
其他好文 时间:
2015-04-01 12:40:48
阅读次数:
104
To speak at macro level that is at project manager or at senior levels. The Functional Spec (Specification) which is a comprehensive document is creat...
分类:
其他好文 时间:
2015-04-01 10:56:06
阅读次数:
114
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
/ 9 20
...
分类:
其他好文 时间:
2015-03-31 14:46:03
阅读次数:
146
XMLHttpRequest Level 2 添加了一个新的接口——FormData。利用 FormData对象,我们可以通过 JavaScript 用一些键值对来模拟一系列表单控件,我们还可以使用 XMLHttpRequest 的 send()方法来异步的提交表单。与普通的 Ajax 相比,使用 ...
分类:
Web程序 时间:
2015-03-31 14:12:22
阅读次数:
189
目录:解读错误信息RAISERRORTHROW实例 使用 @@ERROR 使用 XACT_ABORT 使用TRY/CATCH现实中的事务语句 删除 更新 银行取钱解读错误信息Msg 547, Level 16, State 0, Line 11The INSERT statement conflic...
分类:
数据库 时间:
2015-03-31 12:16:38
阅读次数:
281
1.http://hehongwei44.iteye.com/blog/14949992.http://maymay.iteye.com/blog/1275432#log4j.rootLogger = [ level ] , appenderName, appenderName, ...log4j....
分类:
其他好文 时间:
2015-03-31 10:27:58
阅读次数:
120