Find Top Two Teams
Asked at Uber · Coding & Leetcode-style Questions · Difficulty: Medium
"\n Given 4 arrays wins, draws, scored, conceded of size N these arrays represent the stats of N teams. The array wins[i] represents the number of wins of the i`th team, draws[i] represents the number of draws of the i`th team, scored[i] represents the score of the i`th team, and conceded[i] represents the concede of the i`th team.\n \n For every win, a team is rewarded 3 points and for every draw, a team is rewarded 1 point. The task is to find the highest and second-highest scoring teams.
Loading the problem…