最新 最热

LeetCode 0228 - Summary Ranges

Given a sorted integer array without duplicates, return the summary of its ranges.

2021-08-11
1

LeetCode 0219 - Contains Duplicate II

Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the absolute d...

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 0258 - Add Digits

Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.

2021-08-11
1

LeetCode 0233 - Number of Digit One

Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.

2021-08-11
0

LeetCode 0315 - Count of Smaller Numbers After Self

You are given an integer array nums and you have to return a new counts array. The counts array has the property where counts[i] is the number of smaller elemen...

2021-08-11
1

LeetCode 0287 - Find the Duplicate Number

Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. Assume tha...

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
0

LeetCode 0295 - Find Median from Data Stream

Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two middle va...

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