4Sum

Try to solve the 4Sum problem.

Statement

Given an array nums of nn integers, return an array of all the unique quadruplets, [nums[a], nums[b], nums[c], nums[d]] such that:

  • 00 \leq a, b, c, d <n< n ...