Computer Science, asked by Rushi3349, 1 year ago

How to arrange array in alternating positive and negative number in c

Answers

Answered by Anonymous
0

Rearrange array in alternating positive & negative items with O(1) extra space. Set 2. Given an array of positive and negative numbers, arrange them in an alternate fashion such that every positive number is followed by negative and vice-versa. Order of elements in output doesn't matter.

Similar questions