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.
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.