Frage im Vorstellungsgespräch bei Verifone

Sort the binary array with O(n) in java.

Antwort im Vorstellungsgespräch

Anonym

15. Jan. 2025

Count the no. of zeros and store the count. then add the 0s based on the count and add remaining element as 1 to the array