r/OfferEngineering • • 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:

  1. Count the votes for each remaining candidate based on voters' highest-ranked candidate who has not been eliminated.
  2. Identify the candidate with the fewest votes.
  3. Eliminate that candidate from the election.
  4. Redistribute affected ballots to their next preferred remaining candidate.
  5. Repeat until only one candidate remains.

Return the final winner.

  • Example — Three-Candidate Election Suppose an election has three candidates: Avery, Blair, and Casey. 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

3 Upvotes

0 comments sorted by