Day 39: 4-sum
In 2-sum, 3-sum or 4-sum problems we are searching for a tuples, triplets or quadruplets that sum to zero. Or any other value.
There are several strategies to approach 4-sum problem. The one I chose builds a hash map to search for pairs of tuples that satisfy (2sum, -2sum)
.