Round robin schedule

There are n players to play a tennis round robin. Design a competition schedule that meets the following criteria: Each player must play n − 1 other players once each; Each player can only race once a day; When n is even, the round robin is played for n − 1 days. When n is odd, the round robin is played for n days.

Posted on Data Structure and Algorithm