最新 最热

LeetCode 0327 - Count of Range Sum

Given an integer array nums, return the number of range sums that lie in [lower, upper] inclusive.Range sum S(i, j) is defined as the sum of the elements in nu...

2021-08-11
1

LeetCode 0330 - Patching Array

Given a sorted positive integer array nums and an integer n, add/patch elements to the array such that any number in range [1, n] inclusive can be formed by the...

2021-08-11
1

LeetCode 0363 - Max Sum of Rectangle No Larger Than K

Given a non-empty 2D matrix matrix and an integer k, find the max sum of a rectangle in the matrix such that its sum is no larger than k.

2021-08-11
1

LeetCode 0404 - Sum of Left Leaves

Find the sum of all left leaves in a given binary tree.

2021-08-11
1

LeetCode 0377 - Combination Sum IV

Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target.

2021-08-11
1

LeetCode 0120 - Triangle

Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.

2021-08-11
1

LeetCode 0112 - Path Sum

Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.

2021-08-11
1

LeetCode 0113 - Path Sum II

Given a binary tree and a sum, find all root-to-leaf paths where each path’s sum equals the given sum.

2021-08-11
1

LeetCode 0064 - Minimum Path Sum

Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.

2021-08-11
1

LeetCode 0053 - Maximum Subarray

Find the contiguous subarray within an array (containing at least one number) which has the largest sum.

2021-08-11
1