awesome-everything RU

two sum

RU: two-sum

A classic problem: find two numbers in an array that add up to a target. The naive solution is O(n²) nested loops; the seen pattern solves it in O(n) time and space.

shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?