Is your feature request related to a problem? Please describe.
The problem is to find the number of set bits in binary representation of a number.
Describe the solution you'd like
Brian kernighan algorithm is an efficient algorithm which uses bitwise and operation and helps to find number of set bits .
Set bits refer to number of 1s in binary representation of a number.
Time complexity - O(log N)
Auxiliary space - O(1)
[Describe alternatives you've considered]()
Lookup table method can also be used to solve this problem
Additional context
I want to work under SSOC'23.
I want to add this algorithm in maths section, please assign this to me.
Is your feature request related to a problem? Please describe.
The problem is to find the number of set bits in binary representation of a number.
Describe the solution you'd like
Brian kernighan algorithm is an efficient algorithm which uses bitwise and operation and helps to find number of set bits . Set bits refer to number of 1s in binary representation of a number. Time complexity - O(log N) Auxiliary space - O(1)
[Describe alternatives you've considered]()
Lookup table method can also be used to solve this problem
Additional context
I want to work under SSOC'23. I want to add this algorithm in maths section, please assign this to me.