← Microsoft questions
CodingMediumReported in a candidate post, Jul 2025

Rearrange array so evens are at even indexes and odds at odd indexes

Filed under Microsoft

Given an array of 2N integers containing N even and N odd numbers, rearrange it in place so that every even number is at an even index and every odd number is at an odd index (0-indexed). Use no extra…

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 Microsoft questions

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