最新 最热

LeetCode 0136 - Single Number

Given a non-empty array of integers, every element appears twice except for one. Find that single one.

2021-08-11
0

LeetCode 0137 - Single Number II

Given a non-empty array of integers, every element appears three times except for one, which appears exactly once. Find that single one.

2021-08-11
0

LeetCode 0128 - Longest Consecutive Sequence

Given an unsorted array of integers, find the length of the longest consecutive elements sequence.

2021-08-11
0

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
0

LeetCode 0229 - Majority Element II

Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times.

2021-08-11
0

LeetCode 0300 - Longest Increasing Subsequence

Given an unsorted array of integers, find the length of longest increasing subsequence.

2021-08-11
0

LeetCode 0268 - Missing Number

Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array.

2021-08-11
0

LeetCode 0334 - Increasing Triplet Subsequence

Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array.

2021-08-11
0

LeetCode 0335 - Self Crossing

You are given an array x of n positive numbers. You start at point (0,0) and moves x[0] metres to the north, then x[1] metres to the west, x[2] metres to the so...

2021-08-11
0

LeetCode 0347 - Top K Frequent Elements

Given a non-empty array of integers, return the k most frequent elements.

2021-08-11
0