Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1809. Ad-Free Sessions
Given event timestamps and a number of ad-free coupons (or a fixed ad-free duration per coupon), determine how to cover events with ad-free intervals to maximize the number of ad-free sessions (or minimize coupons used). This reduces to sorting and greedy interval coverage / sliding-window grouping of timestamps to pack as many events as possible into each ad-free interval.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.