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.
Solution /* Solution to HackerRank: Balanced Strings * URL: https://www.hackerrank.com/contests/regular-expresso/challenges/balanced-strings */ "^(ab|ba)+$" possible strings: ababab abba babaab but not: a bab abbaaba