GoogleSoftware Engineer · OnsiteCodemia practiceEvaluate Boolean Search Queries With Phrases Against a Document
Parse a query that combines words, quoted phrases, AND, OR, NOT, parentheses, and implicit AND between adjacent terms (for example: pixel "battery life" NOT (iphone OR galaxy)), and decide whether a given document's word sequence matches it.