Tournament Winner
CodeChefOpen on judge ↗
Bob is interested in watching sports live. He can't miss any tournament in his area. Unfortunately, he missed today's tournament because he has a semester. But he was eager to know which team would win the tournament. We are given N and arr of N numbers. Each arr[i] represents which team wins the current match. Help Bob to find which team wins the tournament. A team wins the tournament, who wons
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start