Radiant and Dire senators ban each other. Each senator bans the next opposing senator. Determine winning party.
Greedy with two queues: each senator bans the next available opponent. Re-add winners to back of queue.
- Create queues of indices for R and D
- While both queues non-empty: pop front of each
- Senator with smaller index bans the other
- Winning senator re-enters queue with index + n
- Return party of remaining senators
- Time Complexity: O(n)
- Space Complexity: O(n)