← Apple questions
CodingReported in a candidate post, Mar 2025

Vote counter with rank-based counting for millions of votes

Filed under Apple

Design and implement a class that reads a very large stream of ballots (millions of votes) and produces a rank-based count of the candidates, processing the ballots in batches so memory stays bounded…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Apple questions

Collected from public candidate posts and coding forums. Updated Nov 2026.