Ad Frequency Capping with Eligibility Checks and Impression Events

Problem

Design and implement an ad frequency capping system. Track impressions independently for each (user_id, campaign_id) pair and determine whether a user is eligible to see a campaign.

The ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: