Click here to Skip to main content
15,904,024 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear sir,
i have 9 elements in an array like 0 0 1 1 0 1 0 1 0 now i have to arrange first all 0 elements and then all 1 elements

and i have to achieve output like 0 0 0 0 0 1 1 1 1


thanks in advance
Posted
Updated 9-Nov-14 1:40am
v2
Comments
Afzaal Ahmad Zeeshan 9-Nov-14 7:44am    
Is this a C program, or a C# program?

You know, there is a huge difference.

1 solution

 
Share this answer
 
Comments
anshu77 10-Nov-14 0:18am    
thanks sir,
But i need to solve it without using library function and with quick sort

Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900