Text Search: search a word, then search a phrase (follow-up)
Asked at Confluent · Coding Questions · Difficulty: Medium · Last asked Jul 19, 2026
Index a multi-line text once, then answer many queries that count either a single word or a contiguous multi-word phrase, case-insensitively.
Loading the problem…
More Confluent interview questions
- Design Scalable TinyURL Service with One-to-One URL Mapping
- Design a podcast publishing and feed system
- Phrase search over multiple documents
- Warehouse Loading: Reach TargetWeight at Any Point with Reordered +/- Weights
- Pairwise Modulo Checksum: Sum of i mod j + j mod i up to n
- Random Queue ADT + Equality + Thread Safety + RLE-backed Comparison