Brian Kernighan's Algorithm | Count set bits in binary representation of a number

preview_player
Показать описание
Hi, I Aziz welcome you to CoedMaster.

In this video, I talked about Brian Kernighan's Algorithm. It is used to find no. of set bits in binary representation of a number.

Feedbacks and Suggestions are most welcome.

Thank you for all the support ❤️

📍 Follow me: 📍

#coding #programming #dsa #java #javascript #typescript #problem-solving #technology #how-to #softwareengineering #interview-preparation #system-design #low-level-design #high-level-design #desing-patterns #design-principles
Рекомендации по теме
Комментарии
Автор

NO of set bits can't be calculated with the formula log 2 (n).

n = 8 --> 1000

log2(8) = 3 but no of set bits is 1 only.

rajdipbandopadhyay
welcome to shbcf.ru