摘要: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim 阅读全文
posted @ 2018-05-07 17:43 乐乐章 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 合并区间 : 56. Merge Intervals(56. 合并区间 排序+双指针) 快慢指针: 141. Linked List Cycle(快慢指针 判断链表是否有环) 142. Linked List Cycle II(快慢指针--找出链表相交的节点) 876. 链表的中间结点 19. Re 阅读全文
posted @ 2018-05-07 17:29 乐乐章 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array nums, remove the duplicates in-place such that duplicates appeared at most twice and return the new length. Do not allocate extra 阅读全文
posted @ 2018-05-07 17:18 乐乐章 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Given an array nums and a value val, remove all instances of that value in-place and return the new length. Do not allocate extra space for another ar 阅读全文
posted @ 2018-05-07 16:37 乐乐章 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). Example: Input: S = "ADOB 阅读全文
posted @ 2018-05-07 13:34 乐乐章 阅读(247) 评论(0) 推荐(0) 编辑