NewThe Learning module is now liveSee what's new

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.

Test Cases
Input
Output
Expected