标签: leetcode
-
leetcode386. Lexicographical Numbers
将1~n这n个数字按照字母序排序,并返回排序后的结果。即如果n=13,则1~13的字母序为1,10,11,12…
-
78. Subsets
Given a set of distinct integers, nums, return all poss…
-
77. Combinations
Given two integers n and k, return all possible combina…
-
74. Search a 2D Matrix
Write an efficient algorithm that searches for a value …
-
73. Set Matrix Zeroes
Given a m x n matrix, if an element is 0, set its entir…
-
60. Permutation Sequence
The set [1,2,3,…,n] contains a total of n! unique per…
-
81. Search in Rotated Sorted Array II
Suppose an array sorted in ascending order is rotated a…
-
75. Sort Colors
Given an array with n objects colored red, white or blu…
-
leetcode389.Find The Difference
假设两个只包含小写字母的字符串s和t,其中t是s中字母的乱序,并在某个位置上添加了一个新的字母。问添加的这个新…
-
79. Word Search
Given a 2D board and a word, find if the word exists in…