Two Sum, Three Sum, Four Sum: It’s All the Same Trick

There’s really only one idea behind this entire family: find numbers whose sum equals a target by asking “have I seen the complement…