You are given a list of votes, each vote being a candidate name. Return the candidate who received the most votes. If several candidates tie, return the lexicographically smallest name (confirm the…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.