最新 最热

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 0234 - Palindrome Linked List

Given a singly linked list, determine if it is a palindrome.

2021-08-11
1

LeetCode 0239 - Sliding Window Maximum

Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in th...

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

LeetCode 0321 - Create Maximum Number

Given two arrays of length m and n with digits 0-9 representing two numbers. Create the maximum number of length k <= m + n from digits of the two. The relative...

2021-08-11
1

LeetCode 0300 - Longest Increasing Subsequence

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

2021-08-11
1

LeetCode 0338 - Counting Bits

Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1’s in their binary representation and return them...

2021-08-11
1

LeetCode 0347 - Top K Frequent Elements

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

2021-08-11
1

LeetCode 0324 - Wiggle Sort II

Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3]….

2021-08-11
1

LeetCode 0309 - Best Time to Buy and Sell Stock with Cooldown

Say you have an array for which the ith element is the price of a given stock on day i.

2021-08-11
1