摘要: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the c... 阅读全文
posted @ 2015-03-24 19:39 hongchun_z 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for... 阅读全文
posted @ 2015-03-24 17:39 hongchun_z 阅读(84) 评论(0) 推荐(0) 编辑
摘要: mplement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.int strStr(char *haystack, ... 阅读全文
posted @ 2015-03-24 16:01 hongchun_z 阅读(93) 评论(0) 推荐(0) 编辑