//Runtime: 29 ms, faster than 74.03% of Java online submissions for 4Sum. //Memory Usage: 39 MB, less than 83.55% of Java online submissions for 4Sum.
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum ...