rising3월 19일· 2 sources
Two Sums
두 수의 합 (Two Sum)
Why it matters
The article explains the Two Sum problem from LeetCode, where two numbers in an array must sum to a target. It compares three approaches—brute force, hashing, and an optimized complement-based method—and walks through the optimized solution using a dictionary to store seen values.
2
Sources
+0
24h
—
Growth
181d
Active
brute forcecomplementhash maphashingleetcodesorted arraytwo pointerstwo sum