Two values above a third
transcript
A server logs every request. You want clients above a third of all requests. How many clients can qualify? The answer shapes the code. At most two. Here is why.
Each qualifying client needs more than a third of the list. Three of them would need more than the whole list. That cannot happen. So two is the limit, and two candidates are enough.
Take nine requests. Four are from client one and four from client two. Both clients hold more than a third. One vote candidate names only one. Keep two candidates instead. Then both clients are found.
A vote only names candidates. It does not prove they qualify. Count both candidates in a second pass over the list. Keep those above a third and drop the rest.
A share has few holders. Above a third has two at most. Keep that many vote candidates. Check them in a second pass over the list. Full breakdown in the lecture.