Path Sum问题: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 g...
分类:
其他好文 时间:
2015-03-11 09:17:40
阅读次数:
123
Binary Tree Level Order Traversal II问题:Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, le...
分类:
其他好文 时间:
2015-03-11 09:15:51
阅读次数:
125
Description
You are given a sequence of n integers a1 , a2 , ... , an in non-decreasing order. In addition to that, you are given several queries consisting of indices i and j (1
≤ i ≤ j ≤ n). Fo...
分类:
其他好文 时间:
2015-03-11 00:44:27
阅读次数:
145
假设:create table t(id int not null primary key auto_increment,name char(10) not null,sex char(2) not null)engine=myisam;insert into t values(null,'tom'...
分类:
数据库 时间:
2015-03-10 17:06:42
阅读次数:
213
Question:Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to ro...
分类:
其他好文 时间:
2015-03-10 17:01:03
阅读次数:
129
一,支持多语种
前提要求是不要进行硬编码,应该将字符串提出来放入strings.xml中。
然后需要对多语种支持时,通过res/values文件夹的名称来区分语种,
比如:
简体中文是values-zh-rCN
繁体中文是values-zh-rTW
英文是values-en
参考:
Android应用支持多设备
http://blog...
分类:
移动开发 时间:
2015-03-10 12:18:28
阅读次数:
185
https://leetcode.com/problems/gray-code/The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negati...
分类:
其他好文 时间:
2015-03-09 15:53:12
阅读次数:
194
from:http://dufan20086.blog.163.com/blog/static/6616452320145269343675/我们在创建要素时,简单的IFeatureClass.CreateFeature之后,然后把IGeometry对象赋给Feature.shape,会引发“Th....
分类:
其他好文 时间:
2015-03-09 12:34:18
阅读次数:
136
DefaultValues 介绍了如何在XML中定义Preference的缺省值。
分类:
移动开发 时间:
2015-03-09 12:32:57
阅读次数:
146