Available question text
Given an unbounded stream of characters, design an online algorithm that processes each incoming character and reports whether a given pattern has just appeared as a contiguous substring, while using limited per-character time and bounded memory. This requires building an efficient state machine or rolling-match structure (e.g., KMP/Aho-Corasick/automaton or streaming hash) to update match state incrementally.
Related questions
Continue with questions that share topics or the same question type.
- Find Pattern in Infinite Stream I
Coding
- Find and Replace Pattern
Coding
- Find Consecutive Integers from a Data Stream
Coding
- Find Median from Data Stream
Coding · Data Stream · Design · Heap (Priority Queue)
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3037. Find Pattern in Infinite Stream II
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source