LeetCode 18. 4Sum

Description https://leetcode.com/problems/4sum/description/ Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique quadruplets in the array…

LeetCode 26. Remove Duplicates from Sorted Array

Description https://leetcode.com/problems/remove-duplicates-from-sorted-array/description/ Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length. Do not…

LeetCode 16. 3Sum Closest

Description https://leetcode.com/problems/3sum-closest/description/ Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return…

LeetCode 15. 3Sum

Description https://leetcode.com/problems/3sum/description/ Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the…

LeetCode 11. Container With Most Water

Description https://leetcode.com/problems/container-with-most-water/description/ Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two…