Day 2 - Arrays and Strings
Arrays
Practice Questions
Move Negative Elements to one side of the Array

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