Given an array contain 0s and 1s, sort the array such that all the 0s come before

Question:

Given an array contain 0’s and 1’s, sort the array such that all the 0’s come before 1’s.image text in transcribed

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: