$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #8

Fill the operator that tests membership in a set.

if target - x ____ seen:   # Two Sum

Answer: in (also accepted: in)

x in seen checks membership in O(1) average.
Play Problem Solving ▸