Coursera·Software Engineer·Technical Phone Screen
May 2026
Coursera software engineer interview with a simulation problem that looks approachable until you actually try to implement it cleanly under pressure. One question, but it had enough moving parts to keep me busy.
- Given a list of ranked ballots where each ballot is an ordered list of candidate names, implement Instant Runoff Voting. Each round, count the first active candidate on each ballot. If someone clears 50%, they win. Otherwise eliminate the candidate with the fewest votes, breaking ties by keeping the lexicographically smallest name alive. Return the winner.
“My first instinct was to mutate the ballots directly and I immediately regretted it.”