最新 最热

LeetCode 0162 - Find Peak Element

A peak element is an element that is greater than its neighbors.

2021-08-11
1

LeetCode 0167 - Two Sum II - Input array is sorted

Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.

2021-08-11
1

LeetCode 0169 - Majority Element

Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.

2021-08-11
0

LeetCode 0153 - Find Minimum in Rotated Sorted Array

Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.

2021-08-11
1

LeetCode 0154 - Find Minimum in Rotated Sorted Array II

Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.

2021-08-11
1

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
1

LeetCode 0230 - Kth Smallest Element in a BST

Given a binary search tree, write a function kthSmallest to find the kth smallest element in it.

2021-08-11
0

LeetCode 0215 - Kth Largest Element in an Array

Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.

2021-08-11
1

LeetCode 0217 - Contains Duplicate

Given an array of integers, find if the array contains any duplicates.

2021-08-11
1

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
1