iven a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For exam...
分类:
其他好文 时间:
2015-01-16 22:17:55
阅读次数:
292
/etc/init.d/networking restart #这种方式必须有/etc/network/interface文件ifconfig eth0 down #直接重启网卡ifconfig eth0 up
分类:
系统相关 时间:
2015-01-16 22:17:51
阅读次数:
265
1. Go to 'Extras' -> download and install 'Babel'.2. Set up '.htaccess' file, currently, we set up three languages:find '# The Friendly URLs part' in ...
分类:
其他好文 时间:
2015-01-16 20:48:12
阅读次数:
292
今天解bug时,遇到这样一个问题: 问题描写叙述:切换系统语言为阿拉伯文时,actionbar布局没有变为从右向左排列。 于是,我在Androidmanifest.xml文件里的application 标签内加上android:supportsRtl="true"属性,发现没有起到效果。 原因在.....
分类:
移动开发 时间:
2015-01-16 18:23:08
阅读次数:
220
1、效果图
第二个菜单TAB1,TAB2,TAB3是参照网上的例子,第一个菜单是在它的基础之上改变而来。
2、菜单
这里的菜单是通过两种方式来实现,一种是通过布局文件,一种是通过自定义组件LinearLayout。自定义只需要传入菜单的名字即可,切换时需要监听事件。下面是一个viewpager+fragment实现,在滑动时改变tab的选中项。
自定义tab底部线是采用Translat...
分类:
其他好文 时间:
2015-01-16 13:12:24
阅读次数:
326
在做项目时遇到需要使用ActionBar就写下来了方便以后知道这种方法和使用,当然还有其他方法,以后慢慢研究:...
分类:
其他好文 时间:
2015-01-16 11:25:32
阅读次数:
147
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 the ...
分类:
其他好文 时间:
2015-01-15 23:54:55
阅读次数:
206
Follow up for "Find Minimum in Rotated Sorted Array":
What if duplicates are allowed?
Would this affect the run-time complexity? How and why?
Suppose a sorted array is rotated at some pivot u...
分类:
其他好文 时间:
2015-01-15 22:14:10
阅读次数:
166
题目:Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.The functi...
分类:
其他好文 时间:
2015-01-15 21:51:33
阅读次数:
159
题目:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two...
分类:
其他好文 时间:
2015-01-15 21:35:19
阅读次数:
115