Toolbar其实是一个ActionBar的变体,大大扩展了Actionbar。我们可以像对待一个独立控件一样去使用ToolBar,可以将它放到屏幕的任何位置,不必拘泥于顶部,还可以将它改变高度或者是在ToolBar上使用动画。下面我们来讲如何使用这个控件。1.将控件放入布局中 我们在...
分类:
其他好文 时间:
2014-11-08 12:01:39
阅读次数:
324
Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution stil...
分类:
其他好文 时间:
2014-11-08 11:43:47
阅读次数:
190
Andy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of words that he knows is, well, not quite enough. Instead of thinking up all the wo...
分类:
其他好文 时间:
2014-11-08 07:06:02
阅读次数:
214
题目描述:输入一个递增排序的数组和一个数字S,在数组中查找两个数,是的他们的和正好是S,如果有多对数字的和等于S,输出两个数的乘积最小的。
输入:
每个测试案例包括两行:
第一行包含一个整数n和k,n表示数组中的元素个数,k表示两数之和。其中1
第二行包含n个整数,每个数组均为int类型。
输出:对应每个测试案例,输出两个数,小的先输出。如果找不到,则输出“-1 -1”...
分类:
其他好文 时间:
2014-11-07 23:33:44
阅读次数:
425
问题描述:
Follow up for "Unique Paths":
Now consider if some obstacles are added to the grids. How many unique paths would there be?
An obstacle and empty space is marked as 1 and
0 respectively in ...
分类:
其他好文 时间:
2014-11-07 20:56:34
阅读次数:
272
Dataload常用命令
Dataload命令符
说明
Tab 或\{tab}
键盘Tab键,下一个单元
*UP 或\{UP}
键盘上
*DN 或\{DOWN}
键盘下
*LT 或\{LEFT}
键盘左
*RT 或\{RIGH...
分类:
其他好文 时间:
2014-11-07 20:55:12
阅读次数:
2773
Follow up for "Search in Rotated Sorted Array":
What if duplicates are allowed?
Would this affect the run-time complexity? How and why?
Write a function to determine if a given target is in the...
分类:
其他好文 时间:
2014-11-07 19:10:51
阅读次数:
161
Getting Office License Configuration Information.---------------------------------------Backing Up License Info In Case Of Failure.-------------------...
分类:
其他好文 时间:
2014-11-07 18:30:05
阅读次数:
231
Find Minimum in Rotated Sorted Array IIFollow up for "Find Minimum in Rotated Sorted Array": What if duplicates are allowed?Would this affect the run-...
分类:
其他好文 时间:
2014-11-07 16:47:41
阅读次数:
233
http://blog.csdn.net/yuhua3272004/article/details/3075436使用java.math.BigDecimal工具类实现java保留两位小数问题:方式一(四舍五入形式保留两位小数,注意模式ROUND_HALF_UP):四舍五入double f = 11...
分类:
编程语言 时间:
2014-11-07 12:49:25
阅读次数:
1997