← Paytm questions

Rearrange array into alternating negative and non-negative indices

Filed under Paytm

Given an array of integers, arrange all negative values at even indices and non-negative values at odd indices. Any remaining elements of the type in excess should be placed at the end of the array.

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

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