Squair / vote-machine

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repository is not active

About

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.


Languages

Language:C# 100.0%