Search⌘ K
AI Features

4Sum

4Sum asks you to return every unique quadruplet of four elements at distinct positions whose values sum to a target, including negative numbers, in any order.

Statement

Given an array nums of n ...