+ 3

Can anyone suggest me a good algorithm to make football fixture taking the number of teams as an input

It should be able to take input of number of teams then the teams will be each of the numbers between one and the provided number of teams and it should generate the fixture without repeating the numbers(teams) use any language

13th Apr 2019, 12:21 PM
Michael Mamo
Michael Mamo - avatar
2 Antworten
13th Apr 2019, 4:34 PM
Sebastian Keßler
Sebastian Keßler - avatar
+ 3
In Python you can call list(permutations (list_of_teams, 2)) albeit this one takes list of the teams instead of the number of teams. Hope it helps
14th Apr 2019, 4:58 AM
Dan Rhamba
Dan Rhamba - avatar