---
title: "Discussion on \"Episode 03 - Find the number of 1s and 0s from the array\" | Hashnode"
description: "Discussion on \"Episode 03 - Find the number of 1s and 0s from the array\". You have been given an array of integers that consists of only 1s and 0s. Your task is to find the total number of 1s and 0s in the array.\nExample Input: [1, 0, 1, 0, 0, 1, 1, 0]\nExpected Output: Total 1s are 4. Total 0s are 4.\nSounds easy, right?\nBu..."
url: "https://hashnode.com/posts/episode-03-find-the-number-of-1s-and-0s-from-the-array/64bed4b08e3917c16de4b5e6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Episode 03 - Find the number of 1s and 0s from the array](https://vigowebs.hashnode.dev/episode-03-find-the-number-of-1s-and-0s-from-the-array?utm_source=hashnode&utm_medium=feed)

You have been given an array of integers that consists of only 1s and 0s. Your task is to find the total number of 1s and 0s in the array. Example Input: \[1, 0, 1, 0, 0, 1, 1, 0\] Expected Output: Total 1s are 4. Total 0s are 4. Sounds easy, right? Bu...

Jul 24, 2023 · 1 min read · vigowebs.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#coding-challenge](https://hashnode.com/tag/coding-challenge)
-   [#interview-questions](https://hashnode.com/tag/interview-questions)

## Written by

[Vigo Webs](https://hashnode.com/@vigowebs)

@vigowebs · Chennai, India

  
[View profile](https://hashnode.com/@vigowebs)

We are full stack developer and mobile app developer. We build Android and Flutter mobile app. We sell digital products in Gumroad. Here, we are for knowledge sharing about development tutorials, tips and sharing useful resources.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
