🎉 All 30 days are live — the full DSA-30 course, from Big-O to System Design. See the roadmap →

Move Negative Elements in the Array to one side

Description

  • An array contains both positive and negative numbers in random order. Rearrange the array elements so that all negative numbers appear before all positive numbers.

Constraints

Code

Finished this page?