Loading...
Is this your company?
find the majority element in an array
Anonymous
I used Moore voting algorithm to find the majority element in linear time and constant space
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.