diminishin
Senior Member
- Joined
- Sep 12, 2013
- Messages
- 2,105
- Reaction score
- 1,218
Hi this should be a simple one.
Let's say we have a tennis match between two players. The game is set as first to N wins. Write a function to return the winner.
Input:
String array (Players who won that round), random size of up to 10000 - [A,A,B,A,B,...]
N - Integer
Expected: A or B
Please put spoilers in your submission
Let's say we have a tennis match between two players. The game is set as first to N wins. Write a function to return the winner.
Input:
String array (Players who won that round), random size of up to 10000 - [A,A,B,A,B,...]
N - Integer
Expected: A or B
Please put spoilers in your submission