Algorithm · Datadog · Medium
Design a lightweight logging service that ingests log records and answers filtered counting queries. Two operation forms must be supported: ADD — stores one log record. QUERY — reports how many stored records satisfy the query. In the query form, a * in the serviceOr, levelOr or keywordOr* slot switches that filter off. When a slot is not , the record's service must equal it exactly, the record's level must equal it exactly, and the given keyword must appear as a substring…
Checking your access…