Given an integer n, return the maximum distance between two adjacent 1 bits in the binary representation of n.
The distance between two adjacent 1 bits is the number of positions between them in the binary string.
If there are fewer than two 1 bits in the binary representation of n, return 0.
Note: The binary representation does not include leading zeros.
Constraints:
n
Given an integer n, return the maximum distance between two adjacent 1 bits in the binary representation of n.
The distance between two adjacent 1 bits is the number of positions between them in the binary string.
If there are fewer than two 1 bits in the binary representation of n, return 0.
Note: The binary representation does not include leading zeros.
Constraints:
n