3125. Maximum Number That Makes Result of Bitwise AND Zero
Given an integer
n
, return the maximum integerx
such thatx <= n
, and the bitwiseAND
of all the numbers in the range[x, n]
is 0.
1 | class Solution { |
3125. Maximum Number That Makes Result of Bitwise AND Zero
Given an integer
n
, return the maximum integerx
such thatx <= n
, and the bitwiseAND
of all the numbers in the range[x, n]
is 0.
1 | class Solution { |