Event Stream Count in Time Range
Asked at Snowflake · Coding Questions · Difficulty: Medium · Last asked May 30, 2026
A stream of `(event_type, timestamp)` events arrives with non-decreasing timestamps. Implement a class `EventCounter` that records the events and answers range-count queries per event type.
Loading the problem…
More Snowflake interview questions
- Design a Distributed Job Scheduler with Cron, Pause, Resume
- Design an ACL Authorization Service
- Design an S3-Style Blob Store with Deduplication
- SQL: Project Duration & Budget per Employee
- Cross-Platform Client Logging Library
- Design a Quota System