Algorithm · Reddit · Medium
Problem Create a function that reports the current score of one tennis game after processing the points that have been played. The points list records each rally winner in order: "A" denotes Player A, and "B" denotes Player B. Use standard tennis scoring: A player's first, second, and third points are called Love, 15, 30, and 40. When both players have won the same number of points below 40, show both score names separated by -. If each player has at least three points and…
Checking your access…