当前搜索:

LeetCode 39. Combination Sum && 40. Combination Sum II && 216. Combination Sum III

39. Combination SumGiven a set of candidate numbers (C) (without duplicates) and a target number (T), find all unique combinations in C where the can...
阅读(44) 评论(0)

LeetCode 35. Search Insert Position

Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in o...
阅读(38) 评论(0)

LeetCode 34. Search for a Range

Given an array of integers sorted in ascending order, find the starting and ending position of a given target value.Your algorithm’s runtime complexi...
阅读(42) 评论(0)

LeetCode 33. Search in Rotated Sorted Array && 81. Search in Rotated Sorted Array II

###LeetCode 33. Search in Rotated Sorted Array Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e., ...
阅读(37) 评论(0)

LeetCode 31. Next Permutation

Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possib...
阅读(37) 评论(0)

LeetCode 27. Remove Element

Given an array and a value, remove all instances of that value in-place and return the new length. Do not allocate extra space for another array, y...
阅读(45) 评论(0)

LeetCode 26. Remove Duplicates from Sorted Array && 80. Remove Duplicates from Sorted Array II

LeetCode 26. Remove Duplicates from Sorted ArrayGiven a sorted array, remove the duplicates in place such that each element appear only once and retu...
阅读(40) 评论(0)

LeetCode 11. Container With Most Water

Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoi...
阅读(37) 评论(0)

LeetCode 1. Two Sum

Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have ex...
阅读(34) 评论(0)

LeetCode 328. Odd Even Linked List

Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not th...
阅读(42) 评论(0)

LeetCode 143. Reorder List

Given a singly linked list L: L0→L1→…→Ln-1→Ln, reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes’ values.Fo...
阅读(39) 评论(0)

LeetCode其他链表简单题

其他链表简单题160. Intersection of Two Linked ListsWrite a program to find the node at which the intersection of two singly linked lists begins.For example,...
阅读(59) 评论(0)

LeetCode 138. Copy List with Random Pointer

A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy...
阅读(43) 评论(0)

LeetCode 206. Reverse Linked List && 92. Reverse Linked List II

LeetCode 206. Reverse Linked List && 92. Reverse Linked List II
阅读(43) 评论(0)

LeetCode 86. Partition List

LeetCode 86. Partition List
阅读(61) 评论(0)

LeetCode 82. Remove Duplicates from Sorted List II

LeetCode 82. Remove Duplicates from Sorted List II
阅读(55) 评论(0)

LeetCode 83. Remove Duplicates from Sorted List

LeetCode 83. Remove Duplicates from Sorted List
阅读(67) 评论(0)

LeetCode 61. Rotate List

LeetCode 61. Rotate List
阅读(44) 评论(0)

LeetCode 24.Swap Nodes in Pairs

LeetCode 24.Swap Nodes in Pairs
阅读(49) 评论(0)

LeetCode 21.Merge Two Sorted Lists

LeetCode 21.Merge Two Sorted Lists
阅读(46) 评论(0)
    个人资料
    持之以恒
    等级:
    访问量: 5929
    积分: 301
    排名: 25万+
    文章存档