Skip to interview prep
Apexed

Given a list of votes, each the ID of a candidate, how do you find the winner (the candidate with the most votes)?

Content review

Report an error

Not yet reviewed

Data structures & algorithms244 of 395

EasySorting

Technical

This is ungraded practice. Run your solution and compare it with the model answer. Your drafts are saved in this browser.

Tab indents · Ctrl/⌘ + Enter runs · Esc then Tab leaves the editor

Press Run to see your program’s output.

Given a list of votes, each the ID of a candidate, how do you find the winner (the candidate with the most votes) — Data structures & algorithms interview quest