Given two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "anagram",t= "nagaram", return true.s= "rat",t= "car", retur...
分类:
其他好文 时间:
2015-08-02 16:35:22
阅读次数:
176
Given two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "anagram",t= "nagaram", return true.s= "rat",t= "car", retur...
分类:
其他好文 时间:
2015-08-02 14:59:17
阅读次数:
122
Given two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "anagram",t= "nagaram", return true.s= "rat",t= "car", retur...
分类:
其他好文 时间:
2015-08-02 14:57:34
阅读次数:
76
Valid Anagram
Given two strings s and t, write a function to determine if t is an anagram of s.
For example,
s = "anagram", t = "nagaram", return true.
s = "rat", t = "car", return f...
分类:
其他好文 时间:
2015-08-01 22:03:13
阅读次数:
83
题目:
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].
You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from statio...
分类:
编程语言 时间:
2015-08-01 22:01:59
阅读次数:
188
题目:
Given two strings s and t, write a function to determine if t is an anagram of s.
For example,
s = "anagram", t = "nagaram", return true.
s = "rat", t = "car", return false.
Note:
Yo...
分类:
其他好文 时间:
2015-08-01 17:21:47
阅读次数:
82
Given two strings?s?and?t, write a function to determine if?t?is an anagram of?s. For example, s?= "anagram",?t?= "nagaram", return true. s?= "rat",?t?= "car", return false. Note: You ...
分类:
其他好文 时间:
2015-08-01 15:53:07
阅读次数:
173
1.为什么声明某些属性时候,一般用copy,而不用strong
@interface
Car :
NSObject
@property
(nonatomic,copy) NSString*
name;
@property (nonatomic,copy) NSArray *array;
@end
对于具有可变副本的属性我们一般声明为copy
比如说,上述name的属性...
分类:
其他好文 时间:
2015-07-29 14:12:36
阅读次数:
119
第一种方法,给car增加属性 public decimal Price { get { return _Price; } set { _Price = value; } } public string Pic...
分类:
Web程序 时间:
2015-07-28 17:22:54
阅读次数:
154
题目:
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, a plan, a canal: Panama" is a palindrome.
"race a car" ...
分类:
编程语言 时间:
2015-07-28 16:05:25
阅读次数:
138