最新 最热

LeetCode 0260 - Single Number III

Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appea...

2021-08-11
1

LeetCode 0319 - Bulb Switcher

There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every third bulb...

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 0373 - Find K Pairs with Smallest Sums

You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k.

2021-08-11
0

LeetCode 0312 - Burst Balloons

Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloons. If the ...

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
0

LeetCode 0400 - Nth Digit

Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, …

2021-08-11
0

LeetCode 0053 - Maximum Subarray

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

2021-08-11
0

LeetCode 0018 - 4Sum

4SumDesicriptionGiven an array S of n integers, are there elements a, b, c, and d in S such that a

2021-08-11
1

LeetCode 0015 - 3Sum

3SumDesicriptionGiven an array S of n integers, are there elements a, b, c in S such that a + b +

2021-08-11
1