Quiz Show Survivor Count
Quiz Show Survivor Count
EasyArrays100% accepted
Arjun hosts a quiz elimination round in Delhi with 20 initial contestants. Some are eliminated based on wrong answers. Given the indices of eliminated contestants [2, 5, 8, 14], he needs to calculate how many contestants advance to the final.
Approach
Given N total contestants and M eliminated indices, return the count of remaining contestants for the final round.
Input
20 4
2 5 8 14
Output
16
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