DSA Advanced Problems

Stream of Characters

Process a character stream and report whether any dictionary word is a suffix of the stream seen so far.