Rearrange an array using swap with 0. You have two arrays src, tgt, containing two permutations of the numbers 0..n-1. You would like to rearrange src so that it equals tgt. The only allowed ope
Given an array of positive and negative integers, re-arrange it so that you have postives on one end and negatives on the other, BUT retain the original order of appearance. For eg. 1, 7,