博客专栏  >  编程语言   >  LeetCode

LeetCode

快乐LeetCode

关注
1 已关注
80篇博文
  • LeetCode 100 Same Tree

    题目描述Given two binary trees, write a function to check if they are equal or not.Two binary trees are ...

    2015-11-26 08:44
    324
  • LeetCode 064 Minimum Path Sum

    题目描述Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right w...

    2015-11-22 17:22
    2595
  • LeetCode 063 Unique Paths II

    题目描述Follow up for “Unique Paths”:Now consider if some obstacles are added to the grids. How many uni...

    2015-11-22 17:02
    2558
  • LeetCode 062 Unique Paths

    题目描述A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below)....

    2015-11-22 16:40
    417
  • LeetCode 061 Rotate List

    题目描述Given a list, rotate the list to the right by k places, where k is non-negative.For example: Gi...

    2015-11-22 16:17
    349
  • LeetCode 060 Permutation Sequence

    题目描述The set [1,2,3,…,n] contains a total of n! unique permutations.By listing and labeling all of th...

    2015-11-22 13:18
    279
  • LeetCode 059 Spiral Matrix II

    题目描述Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.F...

    2015-11-22 11:36
    308
  • LeetCode 058 Length of Last Word

    题目描述Given a string s consists of upper/lower-case alphabets and empty space characters ’ ‘, return t...

    2015-11-22 11:22
    254
  • LeetCode 055 Jump Game

    题目描述Given an array of non-negative integers, you are initially positioned at the first index of the ...

    2015-11-21 20:56
    328
  • LeetCode 054 Spiral Matrix

    题目描述Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spira...

    2015-11-21 20:30
    325
  • LeetCode 053 Maximum Subarray

    题目描述Find the contiguous subarray within an array (containing at least one number) which has the larg...

    2015-11-21 16:56
    403
  • LeetCode 050 Pow(x, n)

    题目描述Implement pow(x, n).代码 public double myPow(double x, int n) { if (n < 0) { ...

    2015-11-11 13:52
    281
  • LeetCode 048 Rotate Image

    题目描述You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise...

    2015-11-11 10:29
    479
  • LeetCode 047 Permutations II

    题目描述Given a collection of numbers that might contain duplicates, return all possible unique permutat...

    2015-11-11 10:16
    302
  • LeetCode 046 Permutations

    题目描述Given a collection of numbers, return all possible permutations.For example, [1,2,3] have the f...

    2015-11-11 10:00
    275
  • LeetCode 043 Multiply Strings

    题目描述Given two numbers represented as strings, return multiplication of the numbers as a string.Note:...

    2015-11-11 09:38
    377
  • LeetCode 040 Combination Sum II

    题目描述Given a collection of candidate numbers (C) and a target number (T), find all unique combination...

    2015-11-10 10:30
    354
  • LeetCode 039 Combination Sum

    题目描述Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C ...

    2015-11-10 10:24
    428
  • LeetCode 038 Count and Say

    题目描述The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 1...

    2015-11-10 09:51
    221
  • LeetCode 036 Valid Sudoku

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

    2015-11-10 09:35
    329
img博客搬家
img撰写博客
img发布 Chat
img专家申请
img意见反馈
img返回顶部