Loading...
Engaged Employer
Count number of bits in an integer. You want a fast solution.
Anonymous
int count = 0; int input = 249239233; do { count += input & 1; } while (input = input>>1); Is there any faster way?
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 personalized job recommendations and updates by starting your searches.