项目作者: dhayalramk

项目描述 :
Assignment for Scheduler
高级语言: PHP
项目地址: git://github.com/dhayalramk/AssignmentScheduler.git
创建时间: 2019-05-22T18:40:38Z
项目社区:https://github.com/dhayalramk/AssignmentScheduler

开源协议:

下载


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.

  1. 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).
  2. In weekdays only one match will be held, and weekends at-least 1 match and at-most 2 matches.
  3. 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).