Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 647 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 647 Bytes

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).