โ† HSBC questions
CodingEasy

Count elements matching specific index and parity rules

Filed under HSBC

Given an array of size N, count the number of elements where the element value is even and the index is even, or the element value is odd and the index is odd.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related HSBC questions

Collected from public candidate posts and coding forums. Updated Nov 2026.