Words arrive one at a time in a continuous stream. Design a structure with add(word) that returns True if that word has been seen before in the stream and False otherwise, so the caller can detect the…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.