Search
⌘K

Leetcode 1348. Tweet Counts Per Frequency

Design a class that records timestamps for each tweet name and, given a frequency ("minute"/"hour"/"day") and a time range, returns the number of tweets in each contiguous fixed-size time chunk covering that range. The challenge is to efficiently group timestamps into buckets per tweet name and support many dynamic record/get queries over arbitrary ranges.

Asked at:

Ramp


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Late July, 2025

Ramp

Mid-level

Comments

Your account is free and you can post anonymously if you choose.