Given a list of time blocks [person_id, start_day, end_day] where each block indicates a person's busy days (inclusive), generate an array of days where all people are free.
Each person_id is used only to group intervals for the same person, which should be merged accordingly. Days are 1-indexed, meaning the count starts from day 1.
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Test Cases
Input
Output
Expected