Randomly Assign Ads to Browser Positions with Per-Ad Frequency Caps (Per User)

Problem: Randomly assign ads to page positions with per-ad (per-user) caps, and update state

Implement a function (or method) that assigns ads for a given user to multiple *browser positions...

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: