
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to
target.
yoruru 發表在
痞客邦
留言(0)
人氣()
4. Median of Two Sorted ArraysGiven two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays.
yoruru 發表在
痞客邦
留言(0)
人氣()
215. Kth Largest Element in an ArrayGiven an integer array nums and an integer k, return the k
th largest element in the array.
yoruru 發表在
痞客邦
留言(0)
人氣()
75. Sort ColorsGiven an array nums with n objects colored red, white, or blue, sort them
in-place so that objects of the same color are adjacent, with the colors in the order red, white, and blue.
yoruru 發表在
痞客邦
留言(0)
人氣()
179. Largest NumberGiven a list of non-negative integers nums, arrange them such that they form the largest number and return it.
yoruru 發表在
痞客邦
留言(0)
人氣()
27. Remove ElementGiven an integer array nums and an integer val, remove all occurrences of val in nums
in-place. The order of the elements may be changed. Then return the number of elements in
nums
which are not equal to
val.
yoruru 發表在
痞客邦
留言(0)
人氣()
56. Merge IntervalsGiven an array of intervals where intervals[i] = [start
i, end
i], merge all overlapping intervals, and return an array of the non-overlapping intervals that cover all the intervals in the input.
yoruru 發表在
痞客邦
留言(0)
人氣()
735. Asteroid CollisionWe are given an array asteroids of integers representing asteroids in a row.
yoruru 發表在
痞客邦
留言(0)
人氣()
1249. Minimum Remove to Make Valid ParenthesesGiven a string s of '(' , ')' and lowercase English characters.
yoruru 發表在
痞客邦
留言(0)
人氣()
1209. Remove All Adjacent Duplicates in String IIYou are given a string s and an integer k, a k duplicate removal consists of choosing k adjacent and equal letters from s and removing them, causing the left and the right side of the deleted substring to concatenate together.
yoruru 發表在
痞客邦
留言(0)
人氣()
1472. Design Browser HistoryYou have a browser of one tab where you start on the homepage and you can visit another url, get back in the history number of steps or move forward in the history number of steps.
yoruru 發表在
痞客邦
留言(0)
人氣()
20. Valid ParenthesesGiven a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
yoruru 發表在
痞客邦
留言(0)
人氣()