← Accolite questions

Put even numbers at even places and odd at odd places

Filed under Accolite

Given an array of integers, rearrange the elements in-place such that even numbers are placed at even indices and odd numbers are placed at odd indices. You may assume the array contains an equal…

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

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