The problem, in one line. Given a list of numbers and a target, return the positions of the two numbers that add up to it. LeetCode 1.
The tell. “Find two things that go together” with nothing sorted. Whenever the question is “has a partner for this already gone past?”, the answer is a hash map of what you have seen.
Included with a plan
This solution is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.