shikaruki / Hactoberfest2021

Hacktoberfest2021
42 stars 361 forks source link

Update in DNF sort #318

Open imdevil69 opened 2 years ago

imdevil69 commented 2 years ago

Given an array A[] consisting 0s, 1s and 2s. The task is to write a function that sorts the given array. The functions should put all 0s first, then all 1s and all 2s in last.