1p3a_oj Experience

Count alternating odd/even subarrays

Interview Experience

Given an array of numbers, count the number of subarrays where odd and even numbers alternate. Example Input: [1, 3, 2, 4] Output: 3 Explanation: Following are the odd-even alternating subarrays

Full Details

🔒

Unlock all Capitalone 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 capitalone interview for a swe role during the coding round.

It covers the following topics: Arrays .

Topics