Team Decisions
Preview mode. Log in to edit, run, submit, and save progress.
Easy
Team Decisions
For each problem, three team members vote whether they know the solution. Return how many problems should be solved if a problem is accepted only when at least two members vote 1.
Examples
Example 1
Input:
votes = [[1, 1, 0], [1, 1, 1], [1, 0, 0]]
Output:
2
Explanation: The first two problems have at least two votes.
Approach hint
Count the number of 1s in each row.
Common mistake
Skipping assumptions, edge cases, or trade-offs can make an otherwise good answer feel incomplete.
solution.cpp