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 of target.
给定一个数组S里包含n个整数,给定一个整数target,从S中找出4个数字,这
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 of target.
给定一个数组S里包含n个整数,给定一个整数target,从S中找出4个数字,这