Merge Sorted Array 最新更新请见:https://yanjia.me/zh/2019/02/… Given two sorted integer arrays nums1 and nums2…
分类:LeetCode题目解答
85. Maximal Rectangle
85. Maximal Rectangle 题目 Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containi…
[LeetCode] Find K Pairs with Smallest Sums 找和最小的K对数字
You are given two integer arrays nums1 and nums2 sorted in ascending order and an i…
[LeetCode] Find Permutation 找全排列
By now, you are given a secret signature consisting of character ‘D’ and ‘I…
LeetCode | Word Ladder
题目: Given two words (start and end), and a dictionary, find the length of shortest transformation se…
[Leetcode] Bus Routes 公交线路
Bus Routes 详细解题思路请访问:https://yanjia.me/zh/2018/11/… We have a list of bus routes. Each routes[i] is a bu…
[LeetCode] Minimum Absolute Difference in BST 二叉搜索树的最小绝对差
Given a binary search tree with non-negative values, find the minimum absolute difference bet…
[LeetCode] Non-decreasing Array 非递减数列
Given an array with n integers, your task is to check if it could become non-decreasing by mo…
[LeetCode] Number of Subarrays with Bounded Maximum 有界限最大值的子数组数量
We are given an array A of positive integers, and two positive integers L and …
LeetCode之Sort题目汇总
H-Index Given an array of citations (each citation is a non-negative integer) of a researcher, write a functio…
LeetCode 018 4Sum
题目描述 Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? …
99. Recover Binary Search Tree
99. Recover Binary Search Tree 题目 Two elements of a binary search tree (BST) are swapped by mistake. Recover t…