我在values文件夹下新建一个color.xml 内容如下#80808FF0#F8F8FF00#FFFFFF#938192#7cd12e#ff000000#ff0000ff#ff00ffff#ff888888#ff00ff00#ffcccccc#ffff00ff#ffff0000#00000000...
分类:
移动开发 时间:
2015-03-07 21:18:08
阅读次数:
158
1.题目Given a binary tree, return the preorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1
2
/
3
return [1,2,3].Note: Recursive solution is trivial, cou...
分类:
其他好文 时间:
2015-03-06 17:04:22
阅读次数:
134
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total number...
分类:
其他好文 时间:
2015-03-06 15:34:13
阅读次数:
153
HashMap实现了Map接口,该接口的作用主要是为客户提供三种方式的数据显示:只查看keys列表;只查看values列表,或以key-value形式成对查看。Map接口并没有定义数据要如何存储,也没有指定如何判定key是一样,因此并不是所有的Map实现都会与hashCode方法扯上关系,如Tr.....
分类:
其他好文 时间:
2015-03-05 18:52:03
阅读次数:
158
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total numb...
分类:
其他好文 时间:
2015-03-05 14:34:25
阅读次数:
127
Sorting It All OutTime Limit:1000MSMemory Limit:10000KTotal Submissions:28762Accepted:9964DescriptionAn ascending sorted sequence of distinct values i...
分类:
其他好文 时间:
2015-03-05 14:16:42
阅读次数:
202
我们先做个测试:接上篇日志建的商品表g和订单表o和触发器假设:假设商品表有商品1,数量是10;我们往订单表插入一条记录:insert into o(gid,much) values(1,20);会发现商品1的数量变为-10了。这就是问题的所在,因为我们之前创建的触发器是after,也就是说触发的语句...
分类:
数据库 时间:
2015-03-05 10:27:47
阅读次数:
208
折半枚举降低暴力搜索的复杂度 在有序数组中用二分查找方式统计有多少值为a的元素的写法
分类:
其他好文 时间:
2015-03-04 20:57:36
阅读次数:
154
INSERT [TOP () [PERCENT] [INTO] [(column list)][OUTPUT ]{VALUES () [,()] [,...n]| | EXEC | DEFAULT VALUES这个结构看起来崩溃,更基本的如下:INSERT [INTO] [(column list)...
分类:
数据库 时间:
2015-03-04 18:19:07
阅读次数:
222
题目Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.For example:Given the below binary tree and sum = ...
分类:
其他好文 时间:
2015-03-04 16:53:52
阅读次数:
108