given array that have 3 colored balls ..please sort them in min time
Anonymous
you can use two pointers , one pointer for the start of the array and the other for the end of the array . sort two colors and the last will sorted alone .
Check out your Company Bowl for anonymous work chats.