博客专栏  >  综合   >  LeetCode (python)

LeetCode (python)

LeetCode

关注
6 已关注
80篇博文
  • leetcode: 79. Word Search

    QGiven a 2D board and a word, find if the word exists in the grid.The word can be constructed from l...

    昨天 13:51
    111
  • leetcode: 78. Subsets

    QGiven a set of distinct integers, nums, return all possible subsets (the power set).Note: The solut...

    昨天 13:50
    110
  • leetcode: 77. Combinations

    QGiven two integers n and k, return all possible combinations of k numbers out of 1 … n.For example,...

    昨天 13:50
    105
  • leetcode: 76. Minimum Window Substring

    QGiven a string S and a string T, find the minimum window in S which will contain all the characters...

    昨天 13:49
    116
  • leetcode: 75. Sort Colors

    QGiven an array with n objects colored red, white or blue, sort them so that objects of the same col...

    昨天 13:49
    98
  • leetcode: 74. Search a 2D Matrix

    QWrite an efficient algorithm that searches for a value in an m x n matrix. This matrix has the foll...

    昨天 13:47
    84
  • leetcode: 73. Set Matrix Zeroes

    QGiven a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.Follow...

    昨天 13:47
    89
  • leetcode: 72. Edit Distance

    QGiven two words word1 and word2, find the minimum number of steps required to convert word1 to word...

    昨天 13:46
    88
  • leetcode: 71. Simplify Path

    QGiven an absolute path for a file (Unix-style), simplify it.For example, path = “/home/”, => “/hom...

    昨天 13:46
    88
  • leetcode: 70. Climbing Stairs

    QYou are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb ...

    昨天 13:44
    84
  • leetcode: 69. Sqrt(x)

    QImplement int sqrt(int x).Compute and return the square root of x.x is guaranteed to be a non-negat...

    昨天 15:35
    119
  • leetcode: 68. Text Justification

    QGiven an array of words and a length L, format the text such that each line has exactly L character...

    昨天 15:34
    106
  • leetcode: 67. Add Binary

    QGiven two binary strings, return their sum (also a binary string).For example, a = “11” b = “1” ...

    昨天 15:34
    121
  • leetcode: 66. Plus One

    QGiven a non-negative integer represented as a non-empty array of digits, plus one to the integer.Yo...

    昨天 15:33
    118
  • leetcode: 65. Valid Number

    QValidate if a given string is numeric.Some examples: “0” => true ” 0.1 ” => true “abc” => false ...

    昨天 15:31
    82
  • leetcode: 64. Minimum Path Sum

    QGiven a m x n grid filled with non-negative numbers, find a path from top left to bottom right whic...

    昨天 15:30
    107
  • leetcode: 63. Unique Paths II

    QFollow up for “Unique Paths”:Now consider if some obstacles are added to the grids. How many unique...

    昨天 15:30
    79
  • leetcode: 62. Unique Paths

    QA robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below).The...

    昨天 15:29
    94
  • leetcode: 61. Rotate List

    QGiven a list, rotate the list to the right by k places, where k is non-negative.Example:Given 1->2-...

    昨天 15:26
    106
  • leetcode: 60. Permutation Sequence

    QThe set [1,2,3,…,n] contains a total of n! unique permutations.By listing and labeling all of the p...

    前天 16:47
    181

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