摘要: 阅读全文
posted @ 2015-11-29 23:48 hao.ma 阅读(108) 评论(0) 推荐(0) 编辑
摘要: #kmp class Solution(object): def strStr(self, haystack, needle): """ :type haystack: str :type needle: str :rtype: int ... 阅读全文
posted @ 2015-11-29 21:05 hao.ma 阅读(156) 评论(0) 推荐(0) 编辑
摘要: class Solution(object): def removeElement(self, nums, val): """ :type nums: List[int] :type val: int :rtype: int ... 阅读全文
posted @ 2015-11-29 20:05 hao.ma 阅读(135) 评论(0) 推荐(0) 编辑
摘要: class Solution(object): def removeDuplicates(self,nums): if len(nums) <= 0: return 0 j=0 for i in range(0,len(nums)): if... 阅读全文
posted @ 2015-11-29 18:06 hao.ma 阅读(133) 评论(0) 推荐(0) 编辑