### LeetCode专栏

0 已关注
84篇博文
• #### LeetCode 99 Recover Binary Search Tree

Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without chang...

2014-08-29 20:06
521
• #### LeetCode 46 Permutations II

Given a collection of numbers that might contain duplicates, return all possible unique permutations...

2014-08-28 14:31
1073
• #### LeetCode 45 Permutations

Given a collection of numbers, return all possible permutations. For example, [1,2,3] have the follo...

2014-08-28 14:20
881
• #### LeetCode 30 Next Permutation

Implement next permutation, which rearranges numbers into the lexicographically next greater permuta...

2014-08-28 09:40
642
• #### LeetCode 44 Jump Game II

Given an array of non-negative integers, you are initially positioned at the first index of the arra...

2014-08-27 17:44
666
• #### LeetCode 54 Jump Game

Given an array of non-negative integers, you are initially positioned at the first index of the arra...

2014-08-26 15:28
411
• #### LeetCode 34 Search for a Range

Given a sorted array of integers, find the starting and ending position of a given target value. You...

2014-08-27 11:15
577
• #### LeetCode 24 Reverse Nodes in k-Group

Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. ...

2014-08-18 21:30
427
• #### LeetCode 93 Restore IP Addresses

Given a string containing only digits, restore it by returning all possible valid IP address combina...

2014-08-17 19:19
411
• #### LeetCode 77 Combinations

Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For exampl...

2014-08-14 22:03
455
• #### LeetCode 103 Binary Tree Zigzag Level Order Traversal

Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to...

2014-08-14 16:11
595
• #### LeetCode 61 Unique Paths

A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). Th...

2014-07-08 18:43
423
• #### LeetCode 35 Valid Sudoku

Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could ...

2014-07-07 13:38
881
• #### leetcode 1 Two Sum

Given an array of integers,find two numbers such that they add up to a specific target number. The ...

2014-05-06 22:02
383
• #### leetcode 2 MEDIAN OF TWO SORTED ARRAYS

There are two sorted arrays A and B of size mand n respectively. Find the median of the two sorted a...

2014-05-06 22:05
368
• #### leetcode 3 LONGEST SUBSTRING WITHOUT REPEATING CHARACTERS

Given astring, find the length of the longest substring without repeating characters.For example, th...

2014-05-06 22:08
407
• #### leetcode 4 ADD TWO NUMBERS

Youare given two linked lists representing two non-negative numbers. The digitsare stored in reverse...

2014-05-06 22:11
370
• #### leetcode 7 REVERSE INTEGER

Reversedigits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 Haveyo...

2014-05-06 22:13
413
• #### leetcode 8 STRING TO INTEGER (ATOI)

Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cas...

2014-05-06 22:16
365
• #### leetcode 9 Palindrome Number

Determine whether an integer is a palindrome. Do this without extra space.

2014-05-06 22:18
378