2015年3月2日

摘要: 1题目Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word ... 阅读全文
posted @ 2015-03-02 20:36 聆听V风声 阅读(114) 评论(0) 推荐(0) 编辑
 
摘要: 1 题目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 ... 阅读全文
posted @ 2015-03-02 19:42 聆听V风声 阅读(106) 评论(0) 推荐(0) 编辑
 
摘要: 1 题目Rotate an array ofnelements to the right byksteps.For example, withn= 7 andk= 3, the array[1,2,3,4,5,6,7]is rotated to[5,6,7,1,2,3,4].Note:Try to ... 阅读全文
posted @ 2015-03-02 11:52 聆听V风声 阅读(207) 评论(0) 推荐(0) 编辑