Vote Counting System
Asked at ZipRecruiter · Coding Questions · Difficulty: Easy
You are given a 2D array `votes` where each sub-array represents a person's votes; a person can vote for multiple candidates. Implement a voting system to determine which candidate has the most votes. Each sub-array is an array of strings representing the candidates that a person voted for. Output the name of the candidate with the most votes.
Loading the problem…