博客专栏  >  编程语言   >  LeetCode专栏

LeetCode专栏

这里是LeetCode的专栏,大部分采用java语言实现,少量采用c++

关注
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
    460
  • LeetCode 46 Permutations II

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

    2014-08-28 14:31
    988
  • 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
    696
  • LeetCode 30 Next Permutation

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

    2014-08-28 09:40
    557
  • 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
    559
  • 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
    374
  • 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
    532
  • 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
    385
  • 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
    343
  • 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
    378
  • 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
    519
  • 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
    386
  • 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
    828
  • 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
    349
  • 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
    322
  • 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
    332
  • 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
    305
  • leetcode 7 REVERSE INTEGER

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

    2014-05-06 22:13
    351
  • 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
    319
  • leetcode 9 Palindrome Number

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

    2014-05-06 22:18
    329

img博客搬家
img撰写博客
img专家申请
img意见反馈
img返回顶部