Is this your company?
An array consists of only ones and zeros,sort the array in efficient way.
Anonymous
Count the number of 0's in the array ( that's O(n) ), then rewrite the array with the number of 0's at the beginning and the rest 1's ( O(n) ).
Check out your Company Bowl for anonymous work chats.