Episode 03 - Find the number of 1s and 0s from the array
Jul 24, 2023 · 1 min read · 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...
Join discussion



