Aeonea·Software Engineer·Technical Phone Screen
- Design and implement a tennis game scoring function. Given a stream of points won by player A or B, output the current score after each point in standard tennis notation, handling the full 0/15/30/40 progression, Deuce, Advantage, and Game win with the correct two-point lead rule. Walk through your data structures and update logic, then trace through a specific example sequence.
“I thought I had this nailed in the first two minutes and then completely fumbled the Deuce/Advantage transitions.”