[LeetCode] Rank Teams by Votes

1 · · May 19, 2022, 12:27 p.m.
1366. Rank Teams by Votes In a special ranking system, each voter gives a rank from highest to lowest to all teams participated in the competition. The ordering of teams is decided by who received the most position-one votes. If two or more teams tie in the first position, we consider the second position to resolve the conflict, if they tie again, we continue this process until the ties are resolved. If two or more teams are still tied after considering all positions, we rank them alphabeticall...