1p3a_oj Experience

Count Subarrays With Alternating Parity (Odd/Even) Including Negatives

Interview Experience

Given an integer array nums (may contain negative numbers), count how many contiguous subarrays have strictly alternating parity between adjacent elements. Formally, a subarray nums[l..r] is

Full Details

🔒

Unlock all Instacart questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a candidate experience report from a instacart interview for a swe role during the coding round.

It covers the following topics: Arrays .

Topics