1. 题目 You are given a string, s, and a list of words, words, that are all of the same length. Find all startin…
分类:LeetCode题目解答
LeetCode | Climbing Stairs
题目: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either cl…
LeetCode 088 Merge Sorted Array
题目描述 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: You ma…
LeetCode 082 Remove Duplicates from Sorted List II
题目描述 Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers f…
LeetCode 078 Subsets
题目描述 Given a set of distinct integers, nums, return all possible subsets. Note: Elements in a subset must be i…
[Leetcode] Remove Duplicates from Sorted Array 移除有序数组中的重复元素
Remove Duplicates from Sorted Array I Given a sorted array, remove the duplicates in place such that each elem…
【leetcode】85. Maximal Rectangle 0/1矩阵的最大全1子矩阵
1. 题目 Given a 2D binary matrix filled with 0’s and 1’s, find the largest rectangle containing only…
[LeetCode] Next Permutation 下一个排列, ,Permutations 全排列
Implement next permutation, which rearranges numbers into the lexicographically next greater permutatio…
[LeetCode] Department Highest Salary 系里最高薪水
The Employee table holds all employees. Every employee has an Id, a salary, and there is also a column …
[LeetCode] Palindrome Pairs 回文对
Given a list of unique words. Find all pairs of distinct indices (i, j) in the give…
[LeetCode] Arranging Coins 排列硬币
You have a total of n coins that you want to form in a staircase shape, where every k-th row must have …
[LeetCode] Diameter of Binary Tree 二叉树的直径
Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a bina…