Rearrange array to alternate positive and negative elements

mediumLast edited: August 2, 2025