Sort binary array in linear time
Given a binary array, sort it in linear time and constant space. The output should print all zeroes, followed by all ones.
#Data_structure
#Output
#Input
Given a binary array, sort it in linear time and constant space. The output should print all zeroes, followed by all ones.
#Data_structure
#Output
#Input