Given an array of positive and negative integers, rearrange them such that positive and negative numbers alternate, while preserving the relative initial order of the positive and negative elements.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.