Problem 3680 · Medium

Generate Schedule

For n teams, build a daily schedule with one match per day in which every ordered home and away pairing occurs exactly once and no team plays on two consecutive days. Return an empty array when no such schedule exists.

Open the interactive visualisation