Turn off the rightmost set bit – Bit Algorithm – Let the input number be n. n-1 would have all the bits flipped after the rightmost set bit .
low order bit
1 Article
1
Turn off the rightmost set bit – Bit Algorithm – Let the input number be n. n-1 would have all the bits flipped after the rightmost set bit .