最新 最热

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
3

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
2

LeetCode 0220 - Contains Duplicate III

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

2021-08-11
2

LeetCode 0368 - Largest Divisible Subset

Given a set of distinct positive integers, find the largest subset such that every pair (Si, Sj) of elements in this subset satisfies:

2021-08-11
1

LeetCode 0336 - Palindrome Pairs

Given a list of unique words, find all pairs of distinct indices (i, j) in the given list, so that the concatenation of the two words, i.e. words[i] + words[j] ...

2021-08-11
6

LeetCode 0378 - Kth Smallest Element in a Sorted Matrix

Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix.

2021-08-11
1

LeetCode 0078 - Subsets

Given a set of distinct integers, nums, return all possible subsets (the power set).

2021-08-11
1

LeetCode 0082 - Remove Duplicates from Sorted List II

Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.

2021-08-11
4

LeetCode 0070 - Climbing Stairs

You are climbing a stair case. It takes n steps to reach to the top.

2021-08-11
1