-
Move all negative numbers to beginning and positive to end with constant extra space
Note: Order of elements is not important here.
-
Rearrange positive and negative numbers with constant extra space
Note: The order of appearance should be maintained.