Skip to content
RED SAGSkills
medium10 pts · first answer countshash-mapdesigntwo-sum

Two Sum on a stream of numbers

A class supports add(x) and find(target), which asks whether any two added numbers sum to target. With a count map, what are the costs?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions