摘要: No.28 Implement strStr()Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.分析... 阅读全文
posted @ 2015-06-02 21:52 人生不酱油 阅读(131) 评论(0) 推荐(0) 编辑
摘要: No.58 Length of Last WordGiven a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the st... 阅读全文
posted @ 2015-06-02 16:00 人生不酱油 阅读(153) 评论(0) 推荐(0) 编辑
摘要: No.6 ZigZag ConversionThe string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this patt... 阅读全文
posted @ 2015-06-02 15:23 人生不酱油 阅读(146) 评论(0) 推荐(0) 编辑