+ 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
2 ответов
+ 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