Search⌘ K
AI Features

Two Sum III - Data structure design

Two Sum III - Data structure design lets you build a class that accepts a stream of numbers and reports whether any two stored values add up to a requested target.

Statement

Design a data structure that takes in a stream of numbers and can check if any two numbers add up to a specific value. ...