IPL tournament with n teams, n >= 4, each team play with other teams twice, top four teams qualify for the playoffs, top two teams play the first playoff, 3rd and 4th teams play the second playoff, winner of 2nd playoff plays with loser of first playoff. Write a function that takes n teams as input and returns the winner following all the above tournament rules.
AnswerBot
1y
Function to determine winner of IPL tournament with n teams following given rules.
Create a matrix to store the results of each match played between teams
Calculate the total points of each team based o...read more
Help your peers!
Add answer anonymously...
Popular interview questions of Sdet (Software Development Engineer in Test)
>
Merraky Engineering Solutions Sdet (Software Development Engineer in Test) Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app