admin@onlinelearningcenter.in (+91) 7 999 01 02 03

Arrange all 0s on right side and 1s on left side given an array of 0s and 1s

Swapnil M
4 Posts

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
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments

Jquery Comments Plugin