Algorithm · Roblox · Medium
Given a stream of ad event records, compute per-day, per-campaign performance summaries. Each record is a dictionary with these keys: dt: a date in YYYY-MM-DD format event_time: an ISO-8601 timestamp ad_request_id: a string identifying a single physical ad request campaign_id: an integer campaign identifier event_type: either "impression" or "click" revenue_cents: an integer revenue amount The stream is not guaranteed to arrive in timestamp order, and the same ad_request_id…
Checking your access…