Algorithm · Perplexity · Medium
Streaming Text Until a Stop Word Coding Software Engineer Problem Overview You receive an unbounded character stream, or a text source too large to store in memory, together with a collection of stop words (sensitive terms). Produce all text preceding the earliest occurrence of any stop word. Constraints: Low memory usage: Because the source may be extremely large, it cannot be read in full. Consume it chunk by chunk. Python generator requirement: Streaming logic must be…
Checking your access…