Hash-map memory “remember what you've seen”
Walk the data once. For each item, ask "have I already seen what I need?" Keep a dictionary of what you've passed so the answer is an O(1) lookup — no nested loop, no scanning backwards.
Used in: Two Sum, Longest Substring, Group Anagrams, Happy Number.