Problem 1995 · Easy

Count Special Quadruplets

Count index quadruplets where three earlier values sum to the fourth. The visual fixes the last index and uses a counting map of pair sums for earlier positions.

Open the interactive visualisation