This is a JAVA Program I wrote to generate the leaderboard or better called the League Table for a Sporting event (Here Football)
The program takes as input : The results of all the fixtures and then returns a list of the teams from top to bottom on the basis of the following parameters:
- Points scored
- Goal Difference
- Goals For
If the tie still can't be broken, the teams are arranged in Alphabetical Order
Sample Input:
5
Spain England France Italy Germany
3
Spain England 3 0
England France 1 1
Spain England 0 2