最新 最热

【PTA|Python】浙大版《Python 程序设计》题目集:第二章

输入一个正整数m(20<=m<=100),计算 11+12+13+...+m 的值。 ​ 输入格式:

2021-08-13
1

LeetCode 0129 - Sum Root to Leaf Numbers

Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.

2021-08-11
1

LeetCode 0216 - Combination Sum III

Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be a unique s...

2021-08-11
1

LeetCode 0209 - Minimum Size Subarray Sum

Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn’t one, retur...

2021-08-11
1

LeetCode 0304 - Range Sum Query 2D - Immutable

Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2, col2).

2021-08-11
1

LeetCode 0303 - Range Sum Query - Immutable

Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.

2021-08-11
1

LeetCode 0307 - Range Sum Query - Mutable

Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.

2021-08-11
1

LeetCode 0279 - Perfect Squares

Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, …) which sum to n.

2021-08-11
1

LeetCode 0371 - Sum of Two Integers

Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.

sum
2021-08-11
1

LeetCode 0343 - Integer Break

Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum product you c...

2021-08-11
1