IndiaDiscuss - Shift all the 0s to the beginning and non 0s to the rear http://indiadiscuss.com/programming-questions/shift-all-the-0s-to-the-beginning-and-non-0s-to-the-rear/ Given an Array With random 0s and non 0 numbers, shift all the 0s to the beginning and non 0s to the rear. Eg: 1,9,8,4,0,0,2,7,0,6,0 Out put 0,0,0,0,1,9,8,4,2,7,6 i.e order of numbers not to change. Do it in place Tue, 06 Mar 2012 13:19:52 MST en