โ† Cadence questions
CodingReported in a candidate post, Jul 2025

Place even numbers at even indexes and odd at odd indexes

Filed under Cadence

The question

Rearrange an array so even numbers occupy even indexes and odd numbers occupy odd indexes; if the counts are unequal the extra evens or odds go at the end (e.g. {3,6,12,1,5,8} becomes 6 3 12 1 8 5).

No write-up yet. Related questions below have one.

Related Cadence questions

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