Quiz Show Elimination Question Tracker
Quiz Show Elimination Question Tracker
MediumArrays0% accepted
Priya hosts Pune quiz show where contestants start with 3 lives. Each wrong answer costs 1 life. Given array of wrong answer question numbers, find at which question number the contestant gets eliminated (reaches 0 lives).
Approach
Given array of question numbers with wrong answers (starting with 3 lives), return the question where contestant is eliminated, or -1 if survives.
Input
4
2 4 6 8
Output
6
More Arrays problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards