Problem 18 · Medium

4Sum

Find every distinct four-value combination in an array that adds up to a target, using sorted order to skip repeats.

Open the interactive visualisation