Write a program to sort an array containing only 0s, 1s, and 2s in linear time without using any sorting library.
You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.