← Amazon questions

Alternate positive and negative numbers without extra space

Filed under Amazon

Rearrange an array of positive and negative numbers into alternating order. If one type of number runs out, append the remaining numbers of the other type to the end of the array while maintaining…

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

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