After spending some time working on our solution, despite feeling we could probably optimize further we felt good. So Stephanie Chiang and I decided to take a look at InterviewCake’s solution and compare our approach.
This marks the beginning of Sooinc’s and my pair programming journey to solve this problem from AlgoExpert. Suppose we have a function that takes in an array of distinct integers and an integer that represents the target sum. How do we find any two integers in the input array that will…