leetcode
649. Dota2 Senate
Solution code
Time complexity: O(n)
Space complexity: O(n)