无序集合 哈希表NSSet *colors=[NSSet setWithObjects:@@"yellow",@"red",@"blue",@"black",nil];NSArray *array=[colors allObjects];NSString *obj = [colors anyObje...
分类:
其他好文 时间:
2015-06-08 13:05:32
阅读次数:
134
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 prog...
分类:
其他好文 时间:
2015-06-08 08:23:40
阅读次数:
109
一、页面跳转时停顿问题
在跳转后的页面添加背景色:[self.view setBackgroundColor:[UIColor colorWithRed:1.0f green:1.0f blue:1.0f alpha:1]];
二、页面布局被标题栏覆盖问题
- (id)init {
self = [super init];
if (self) {
...
分类:
其他好文 时间:
2015-06-07 09:49:23
阅读次数:
125
Title:Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".https://leetcode.com/pro...
分类:
其他好文 时间:
2015-06-06 11:59:49
阅读次数:
100
QuestionGiven an input string, reverse the string word by word. For example,
Given s = “the sky is blue“,
return “blue is sky the“.Answerdef reverseWords(s):
return ' '.join(filter(lambda x:x !=...
分类:
编程语言 时间:
2015-06-05 22:47:36
阅读次数:
299
Problem:Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".解法一:全局翻转 局部翻转 核心代码 vo....
分类:
其他好文 时间:
2015-06-05 22:36:57
阅读次数:
129
其中:before和:after的作用就是在指定的元素内容(不是元素本身)之前或者之后插入一个包含content属性指定内容的行内元素。
最基本的用法如下:
#xin:before{
content:"之前的内容";
color:red;
}
#xin:after{
content:"之后的内容";
color:blue;
}
...
分类:
其他好文 时间:
2015-06-05 15:46:08
阅读次数:
159
Given an input string, reverse the string word by word. For example,Given s = "the sky is blue",return "blue is sky the".解题思路:本题方法多多,最简单的方式直接按“ ” spil...
分类:
编程语言 时间:
2015-06-05 11:50:13
阅读次数:
134
Text Color颜色属性被用来设置文字的颜色。颜色是通过CSS最经常的指定:十六进制值 - 如"#FF0000"一个RGB值 - "RGB(255,0,0)"颜色的名称 - 如"红"参阅CSS 颜色值查看完整的颜色值。一个网页的背景颜色是指在主体内的选择:实例body {color:blue;}...
分类:
Web程序 时间:
2015-06-05 06:10:12
阅读次数:
148
第二年参加省赛,也是我接触ACM这个行列已经过去了一年有余的里程碑。省赛个人排位,直到省赛现场赛结束后这段时间确实学到了很多很多的东西。按照惯例,先讲下比赛过程,题目3人分,我前,盛爷中,blue后面,我A题刚看完blue已经 1Y了 L 了 , 然而我发现A并没有什么思路,再读E,读完发现...
分类:
其他好文 时间:
2015-06-04 22:27:13
阅读次数:
127