https://leetcode.com/problems/sort-colors/Sort ColorsGiven an array withnobjects colored red, white or blue, sort them so that objects of the same col...
分类:
编程语言 时间:
2015-07-03 12:02:12
阅读次数:
124
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.
Here, we will use the integers ...
分类:
其他好文 时间:
2015-07-03 09:13:50
阅读次数:
123
UIColor值是由4个0~1的值组成(Red,Green,Blue和Alpha值),而颜色的十六进制值(hex值)是一个十六进制数。这份代码是这两个值直接的互相转换。 + (UIColor*) colorWithHex:(NSInteger)hexValue alpha:(CGFlo...
分类:
其他好文 时间:
2015-07-02 19:44:16
阅读次数:
147
20157.2一天一工程总结系列对各类优秀工程的剖析和拙见。有些胡言乱语还请作者谅解。VBFPopFlatButton1.执行多次的单例#define AGEColorImplement(COLOR_NAME,RED,GREEN,BLUE) \+ (UIColor *)COLOR_NAME{ \ s...
分类:
其他好文 时间:
2015-07-02 19:14:39
阅读次数:
91
yellow green blue gold red
分类:
其他好文 时间:
2015-07-01 23:24:52
阅读次数:
1709
/*table列表 合并边框设置*/.tablelist{border-collapse:collapse;}/*table列表 设置边框宽度及颜色*/.tablelist td{border:1px solid blue;}
分类:
Web程序 时间:
2015-07-01 15:51:32
阅读次数:
121
UIColor* color = [UIColorcolorWithRed:(x/255.0f)green:( y/255.0f)blue:(z/255.0f)alpha:1.0f];x,y,z的值参见RGB颜色表一个宏#define UIColorFromRGB(rgbValue) [UIColo...
分类:
移动开发 时间:
2015-06-30 18:05:26
阅读次数:
141
#count对象 Only 2.7from collections import Counter#统计字母出现的次数Counter('hello world') Counter(['red', 'blue', 'red', 'green', 'blue', 'blue']) #小于等于0的会被忽略....
分类:
编程语言 时间:
2015-06-29 22:07:24
阅读次数:
126
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 pro...
分类:
其他好文 时间:
2015-06-29 08:45:03
阅读次数:
119
无标题文档
#main {width:525px;
height:300px;
border:3px double black;
}
#t {font-size:30px;
color:blue;
width:120px;
height:35px;
position:absolute;
left:1;
top:1;
}
移动文本
...
分类:
移动开发 时间:
2015-06-28 06:28:38
阅读次数:
136