Back to problems

Document Predicate Search Engine

Algorithm · Snowflake · Medium

Document Predicate Search Engine Problem Overview Design a lightweight web server that holds a set of documents and answers boolean queries over their word content. The server reads commands from stdin and, for each command, prints exactly one line of output. The task unfolds in three incremental stages: Part 1 – Insert and OR-only match: Build INSERT_DOC and a restricted CHECK_CONTAINS that handles only OR-chains like a b c. This stage establishes the Server class, the…

Checking your access…