Fundamental Algorithms8 sections · 291 units
Open in CourseQuiz: Brian Kernighan
Test your understanding
Check Your Understanding
Brian Kernighan's algorithm counts set bits using . Why does this work?
- A.It shifts bits right
- B. clears the lowest set bit
- C.It toggles all bits
- D.It doubles the number