What is the goal of Number of 1 Bits?
Practice this question from Number of 1 Bits - Brian Kernighan Pattern Practice Quiz, with options and an explanation.
Question
What is the goal of Number of 1 Bits?
Option A — Correct answer
Count the set bits in an integer.
Option B
Sort the array and return the middle only
Option C
Use tree recursion only
Option D
Count graph components only
Explanation
Count the set bits in an integer.