Two Pointers
boegkpmlkvebevwa
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
[LeetCode] Remove Element
Total Accepted: 11381 Total Submissions: 35254 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原创 2014-04-02 15:42:42 · 354 阅读 · 0 评论 -
[LeetCode] Merge Two Sorted Lists
Total Accepted: 12841 Total Submissions: 39914 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.原创 2014-04-21 10:19:56 · 470 阅读 · 0 评论 -
[LeetCode] Merge Sorted Array
Total Accepted: 11913 Total Submissions: 37576 Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has enough space (size that is greater or equ原创 2014-04-21 10:17:23 · 471 阅读 · 0 评论 -
[LeetCode] Convert Sorted List to Binary Search Tree
Total Accepted: 9476 Total Submissions: 35578原创 2014-04-21 11:08:02 · 831 阅读 · 0 评论 -
[LeetCode] Swap Nodes in Pairs
Total Accepted: 12160 Total Submissions: 38223 Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->原创 2014-05-07 17:43:47 · 408 阅读 · 0 评论 -
[LeetCode] Linked List Cycle
Total Accepted: 14403 Total Submissions: 41497 Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space?原创 2014-04-08 16:26:54 · 355 阅读 · 0 评论 -
[LeetCode] Linked List Cycle II
Total Accepted: 10163 Total Submissions: 33266 Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Follow up: Can you solve it without using extra space?原创 2014-04-08 16:43:08 · 374 阅读 · 0 评论 -
[LeetCode] 3Sum Closest
Total Accepted: 9118 Total Submissions: 33975 Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three intege原创 2014-05-12 10:29:42 · 447 阅读 · 0 评论 -
[LeetCode] 3Sum
Total Accepted: 12950 Total Submissions: 78829 Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the s原创 2014-05-12 10:53:02 · 629 阅读 · 0 评论
分享