Document Store with Boolean Predicate Query

Asked at Snowflake · Coding Questions · Difficulty: Medium · Last asked Apr 20, 2026

Build a small in-memory document store. Each document is a filename with a list of words. The store answers boolean queries such as "does this file contain `a` and `b`, or `c`?" for one file, and "which files match this query?" across the whole store.

Loading the problem…