im looking for some guidance on how to get started with sorting an array of booleans so that the falses would be in front of the trues.
so if given this: a = {true, true, false, true, false}
it would return: a = {false, false, true, true, true}
here is the exact question: Suppose you have an array of booleans of size n. Give an algorithm that sorts the array so that all false elements come before all true elements.
Thanks for any help you can give me!