โ† Intuit questions

Rearrange array in alternating positive and negative items with O(1) space

Filed under Intuit

Rearrange an array of positive and negative numbers into alternating positive and negative items in O(n) time and O(1) extra space, preserving relative order.

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

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