项目作者: dhayalramk
项目描述 :
Assignment for Scheduler
高级语言: PHP
项目地址: git://github.com/dhayalramk/AssignmentScheduler.git
AssignmentScheduler
create an API endpoint with validation, it should accept only one parameter that is date(start date of tournament).
Create an the algorithm and return back the result as response.
Question:
Create an algorithm for tournament scheduling.
- In tournament 6 teams(A - F) will participate, all teams will play two match with each other.(eg: A & B should play twice in tournament).
- In weekdays only one match will be held, and weekends at-least 1 match and at-most 2 matches.
- None of the teams should not play on consecutive days(eg: if team A and B are playing today, they(A or B) can’t play the match very next day).