Write a program such that all 0s on right side and 1s on left side given an array of 0s and 1s
Ex:
Original array: 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1
Array after arrangement array becomes: 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0
Published By : Swapnil M
Write a program such that all 0s on right side and 1s on left side given an array of 0s and 1s
Ex:
Original array: 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1
Array after arrangement array becomes: 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0