DSA Master
Home
Problems
123
Schedule
17 Patterns
Data Structures
PDF Guide
Back to Problems
Mark as Complete
Number of 1 Bits
#191
Easy
Math & Bit Manipulation
O(1)
O(1)
Amazon
Microsoft
Apple
View on LeetCode
Description
Approach
Solution
Related
Problem Description
Write a function that takes an unsigned integer and returns the number of '1' bits it has.