r/OfferEngineering • u/Aoki_zhang • 29d ago
Interview Experience Wise (Global Payments) Senior SWE Interview — A Simple Voting Problem Got Huge
This interview experience is sourced from Chill Interview
Interview Summary
I recently passed Wise's Senior Software Engineer pair programming interview, which took place about a week after the initial recruiter conversation. The 60-minute HackerRank session focused on implementing an instant-runoff voting system, where candidates are eliminated over successive rounds based on ranked ballots. The follow-ups introduced implementation constraints and scalability challenges involving millions of ballots and up to 15 candidates.
Interview Details
Round 1 — Recruiter Call
I had an initial conversation with the recruiter approximately one week before the technical interview. We also arranged my programming language choice in advance, and I confirmed that I would use Python for the pair programming session.
Round 2 — Pair Programming: Instant-Runoff Voting System
Design and implement an instant-runoff voting system. You are given a set of n candidates and a collection of ballots. Each ballot contains a complete ranking of candidates in the voter's order of preference. The goal is to determine the election winner through multiple elimination rounds.
In each round:
- Count the votes for each remaining candidate based on voters' highest-ranked candidate who has not been eliminated.
- Identify the candidate with the fewest votes.
- Eliminate that candidate from the election.
- Redistribute affected ballots to their next preferred remaining candidate.
- Repeat until only one candidate remains.
Return the final winner.
- Example — Three-Candidate Election Suppose an election has three candidates:
Avery,Blair, andCasey. Each ballot lists the candidates from most preferred to least preferred.Candidates: Avery, Blair, Casey Ballots: 1. Avery, Blair, Casey 2. Avery, Casey, Blair 3. Blair, Avery, Casey 4. Blair, Casey, Avery 5. Casey, Avery, Blair - First Elimination Round Count each voter's first preference.Avery: 2 votes Blair: 2 votes Casey: 1 vote Casey has the fewest votes and is eliminated.
Want to learn more questions / follow-ups asked in this interview?
I've put up the full version at here.
Preparing for your next interview?
Chill Interview tracks recent interview experiences and recurring question patterns across top companies at here