abhishekdoifode1 / Hacktoberfest2021

This Repo is created by Abhishek for the beginners to promote open source programming (hacktoberfest), you just need to add any type of code in any programing lang you want, just commit your name at the end. Give a Star⭐
130 stars 665 forks source link

Sort an array of 0s, 1s and 2s #979

Closed porwalarchit closed 2 years ago

porwalarchit commented 2 years ago

Optimised Code Accepts User Input Count the number of 0s, 1s, and 2s in the given array. Then store all the 0s at the beginning followed by all the 1s then all the 2s.