...

/

Challenge 9: Rearrange Positive & Negative Values

Challenge 9: Rearrange Positive & Negative Values

With the given array, rearrange its elements in such a way that the negative elements appear at one side and positive elements appear in the other.

Problem statement

Implement a function reArrange(int arr[], int size), which takes an array arr and its size as input and rearranges the elements such that ...