Solving Two Sum Two Sum is one of those classic algorithm problems that appear simple but can teach you a lot about optimising solutions. Here's how I went from a brute force attempt to a highly efficient solution. February 13 7 min read