2015年5月28日

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.Update (2014-11-02):The si... 阅读全文

posted @ 2015-05-28 08:40 shini 阅读(86) 评论(0) 推荐(0) 编辑

27.Remove Element

摘要: Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat... 阅读全文

posted @ 2015-05-28 08:27 shini 阅读(85) 评论(0) 推荐(0) 编辑

26. Remove Duplicates from Sorted Array

摘要: Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a... 阅读全文

posted @ 2015-05-28 08:23 shini 阅读(79) 评论(0) 推荐(0) 编辑

22. Generate Parentheses

摘要: Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))... 阅读全文

posted @ 2015-05-28 08:12 shini 阅读(82) 评论(0) 推荐(0) 编辑

导航