← Amazon questions

Put positive and negative elements alternatively in an array

Filed under Amazon

Given an array containing both positive and negative integers, rearrange the elements such that positive and negative numbers appear alternately. If there are extra positive or negative numbers, they…

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.