what is the time complexity of this function? Is it faster/slower than the second method of set bit counting?
@parwandarachit1601 hello Rachit, both methods have O(k) time complexity where k is number of bits.