Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. Su…
标签:LeetCode
LeetCode 75. Sort Colors
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adja…
LeetCode 350. Intersection of Two Arrays II
Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2, 1] , nums2 =…
LeetCode Remove Linked List Elements
Remove all elements from a linked list of integers that have value val. Example*****Given:* 1 –> 2 …
[array] leetCode-1-Two Sum-Easy
leetCode-1-Two Sum-Easy descrition Given an array of integers, return indices of the two numbers such that the…
[array] leetCode-11. Container With Most Water-Medium
leetCode-11. Container With Most Water-Medium descrition Given n non-negative integers a1, a2, …, an, wh…
[array] leetCode-4-Median of Two Sorted Arrays-Hard
leetCode-4-Median of Two Sorted Arrays-Hard descrition There are two sorted arrays nums1 and nums2 of size m a…
[array] leetCode-15. 3Sum-Medium
leetCode-15. 3Sum-Medium descrition Given an array S of n integers, are there elements a, b, c in S such that …
[array] leetCode-16. 3Sum Closest -Medium
16. 3Sum Closest -Medium descrition Given an array S of n integers, find three integers in S such that the sum…
[array] leetCode-18. 4Sum -Medium
18. 4Sum -Medium descrition Given an array S of n integers, are there elements a, b, c, and d in S such that a…
[array] leetCode-26. Remove Duplicates from Sorted Array - Easy
26. Remove Duplicates from Sorted Array – Easy descrition Given a sorted array, remove the duplicates in…
[array] leetCode-27. Remove Element - Easy
27. Remove Element – Easy descrition Given an array and a value, remove all instances of that value in-p…