according to geeksforgeeks , time complexity is -logn.
please tell what does minus denotes?
Simple method of set bits detection time complexity
@anandpratyush526
It is not a minus sign. it is just hyphen to separate the things.
The complexity is log n.