Loading...
Is this your company?
Sort the binary array with O(n) in java.
Anonymous
Count the no. of zeros and store the count. then add the 0s based on the count and add remaining element as 1 to the array
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalised job recommendations and updates by starting your searches.