1366. Rank Teams by Votes
Description
**Input:** votes = ["ABC","ACB","ABC","ACB","ACB"]
**Output:** "ACB"
**Explanation:** Team A was ranked first place by 5 voters. No other team was voted as first place so team A is the first team.
Team B was ranked second by 2 voters and was ranked third by 3 voters.
Team C was ranked second by 3 voters and was ranked third by 2 voters.
As most of the voters ranked C second, team C is the second team and team B is the third.**Input:** votes = ["WXYZ","XYZW"]
**Output:** "XWYZ"
**Explanation:** X is the winner due to tie-breaking rule. X has same votes as W for the first position but X has one vote as second position while W doesn't have any votes as second position. ac
Previous1365. How Many Numbers Are Smaller Than the Current NumberNext1367. Linked List in Binary Tree
Last updated