Solution to LeetCode: Rank Teams by Votes Solution Use a map of arrays (2 dimensional data structure) to accumulate the vote counts per position per team Sort the map based on the vote counts per position and team name /* Solution to LeetCode: Rank Teams by Votes * URL: https://leetcode.