Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEAA solution to last week’s challenge can be found here.
You and your friends have decided to start your own tennis league. Your friends know you are good with data and have put you in charge of creating the schedule for the season.
At this point, you don’t know how many teams will be joining the league or how long the season will last. You decide to create an app that has two inputs: the number of teams participating and the number of weeks for the season. The app will then create a round robin schedule where each team will be matched up with each other team an equal number of times (unless the inputs require bye weeks).
The "Output Sample" shows what your output data rows will look like if you have 5 teams and 5 weeks for example.
Here's my solution.
Hope I get it right.
My solution.
I was not sure how to handle the number of the season. So, I make the Round Robin schedule then I update the Weeks by considering the number of the season.
Fun! Just another challenge that I found a way to overcomplicate...