Count Zeros in Array Problem
Count Zeros in Array Problem — ExecCode School DSA Practice
Solve the Count Zeros in Array problem on ExecCode. Free online school DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.
Problem description
Given a list of integers, count and print how many times the number zero appears in the list. Your task is to understand the rule and print the correct answer. You are working on Count Zeros in Array.
Examples
Input 5 1 0 2 0 3; Output 2. Input 3 0 0 0; Output 3
Constraints
1 <= N <= 10^4
Practice Count Zeros in Array free on ExecCode. Browse DSA problems, topic map, and placement guides.