Given an interval list which are flying and landing time of the flight. How many airplanes are on the sky at most? Notice If landing and flying happen ...
分类:
其他好文 时间:
2016-04-02 08:25:54
阅读次数:
193
一:函数参数的默认值
ES6允许为函数的参数设置默认值,即直接写在参数定义的后面: function log(x,y='world') {
console.log(x,y);
}
log('hello');//hello world
log('hello','sky');//hello sky
log('hello','');//hello`
二:与解构赋值默认值结合使用f...
分类:
其他好文 时间:
2016-04-01 18:14:20
阅读次数:
234
这是一个可滑动的标签栏的自定义控件,参考此文章http://blog.csdn.net/fx_sky/article/details/8990573,我将主要的功能整合成一个类,配上2个特定的布局即可使用。 效果图: 主要布局文件: 标签的布局: sync_nav_radiogroup_item.x ...
分类:
其他好文 时间:
2016-03-24 08:44:50
阅读次数:
252
vi/vim 中可以使用 :s 命令来替换字符串。该命令有很多种不同细节使用方法,可以实现复杂的功能,记录几种在此,方便以后查询。 :s/vivian/sky/ 替换当前行第一个 vivian 为 sky :s/vivian/sky/g 替换当前行所有 vivian 为 sky :n,$s/vivi
分类:
系统相关 时间:
2016-03-14 18:15:50
阅读次数:
237
Given an input string, reverse the string word by word. For example, Given s = “the sky is blue”, return “blue is sky the”. Update (2015-02-12): For C
分类:
其他好文 时间:
2016-02-24 10:45:00
阅读次数:
118
Given an input string, reverse the string word by word. For example,Given s = "the sky is blue",return "blue is sky the". Update (2015-02-12):For C pr
分类:
其他好文 时间:
2016-02-12 12:46:41
阅读次数:
159
题 Cat Noku has obtained a map of the night sky. On this map, he found a constellation with n stars numbered from 1to n. For each i, the i-th star is l
分类:
其他好文 时间:
2016-02-11 23:48:22
阅读次数:
447
题目: Given an input string, reverse the string word by word. For example,Given s = "the sky is blue",return "blue is sky the". 思路: 利用两个stack,一个表示单词,一个表
分类:
其他好文 时间:
2016-02-11 17:59:00
阅读次数:
209
C. Constellation Cat Noku has obtained a map of the night sky. On this map, he found a constellation with n stars numbered from 1 to n. For each i, th
分类:
其他好文 时间:
2016-01-30 13:35:56
阅读次数:
204