Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Day 300 #612

Closed
vaskoz opened this issue Jun 18, 2019 · 0 comments · Fixed by #617
Closed

Day 300 #612

vaskoz opened this issue Jun 18, 2019 · 0 comments · Fixed by #617
Assignees

Comments

@vaskoz
Copy link
Owner

vaskoz commented Jun 18, 2019

Good morning! Here's your coding interview problem for today.

This problem was asked by Uber.

On election day, a voting machine writes data in the form (voter_id, candidate_id) to a text file. Write a program that reads this file as a stream and returns the top 3 candidates at any given time. If you find a voter voting more than once, report this as fraud.

@vaskoz vaskoz self-assigned this Jun 18, 2019
@vaskoz vaskoz mentioned this issue Jun 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant