PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Coding & Algorithms/SIG (Susquehanna)

Count subarrays with odd zero count

Last updated: Mar 29, 2026

Quick Overview

This question evaluates array-processing and combinatorial counting skills, focusing on reasoning about parity of element occurrences and efficiently counting qualifying contiguous subarrays.

  • Medium
  • SIG (Susquehanna)
  • Coding & Algorithms
  • Software Engineer

Count subarrays with odd zero count

Company: SIG (Susquehanna)

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: Medium

Interview Round: Take-home Project

Given an integer array nums, return how many contiguous subarrays contain an odd number of zeros. Provide an O(n) solution (e.g., using prefix parity counts of zero occurrences) and state its time and space complexity. Example: nums = [0, 0, 1, 0, 1] -> 4.

Quick Answer: This question evaluates array-processing and combinatorial counting skills, focusing on reasoning about parity of element occurrences and efficiently counting qualifying contiguous subarrays.

Related Interview Questions

  • Implement 3x3 matrix transforms and rotation - SIG (Susquehanna) (Medium)
SIG (Susquehanna) logo
SIG (Susquehanna)
Aug 8, 2025, 12:00 AM
Software Engineer
Take-home Project
Coding & Algorithms
4
0

Given an integer array nums, return how many contiguous subarrays contain an odd number of zeros. Provide an O(n) solution (e.g., using prefix parity counts of zero occurrences) and state its time and space complexity. Example: nums = [0, 0, 1, 0, 1] -> 4.

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More SIG (Susquehanna)•More Software Engineer•SIG (Susquehanna) Software Engineer•SIG (Susquehanna) Coding & Algorithms•Software Engineer Coding & Algorithms
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.