
string
文章平均质量分 74
jialuyyy
这个作者很懒,什么都没留下…
展开
-
Implement strStr()
Implement strStr()Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Update (2014-11-02):The signatur原创 2015-06-04 21:55:47 · 207 阅读 · 0 评论 -
Find the First Nonrepeated Character
Find the First Nonrepeated CharacterWrite an efficient function to find the first nonrepeated character in a string. For instance, the first nonrepeated character in “total” is ‘o’ and the first non原创 2015-07-12 23:44:20 · 340 阅读 · 0 评论 -
Remove Specified Characters
Remove Specified CharactersWrite an efficient function in JAVA that deletes characters from a string. Use the prototype string removeChars( string str, string remove ); where any character existin原创 2015-07-13 00:36:03 · 269 阅读 · 0 评论 -
Reverse Words in a String
Reverse Words in a StringGiven 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 programme原创 2015-07-13 07:57:13 · 358 阅读 · 0 评论 -
Reverse Words
Reverse WordsWrite a function that reverses the order of the words in a string. For example, your function should transform the string “Do or do not, there is no try.” to “try. no is there not, do o原创 2015-07-13 08:10:09 · 282 阅读 · 0 评论 -
Integer/String Conversions
Integer/String ConversionsWrite two conversion routines. The first routine converts a string to a signed integer. You may assume that the string only contains digits and the minus character (‘-’),原创 2015-07-15 23:27:19 · 245 阅读 · 0 评论