Loading problem…
You're building a notification system for a social media app. Users can receive different types of notifications (like "like", "comment", "follow", etc.), but to avoid overwhelming users, you need to enforce a cooldown period between notifications of the same type.
Given an array of notification types (each represented by a letter from A to Z) and a cooldown period n, determine the minimum number of time slots needed to schedule all notifications. Each time slot can either:
Constraint: There must be at least n time slots between two notifications of the same type.
n