Search⌘ K
AI Features

4Sum

4Sum asks you to find every unique group of four distinct elements in an integer array whose values add up to a given target, including negative numbers.

Statement

Given an array nums of n ...