容中尔甲
One-liner for checking if integer is of form 2^1-2^j using bitwise operators
I want a one line code to check whether a given integer is of form 2i - 2开发者_StackOverflow社区j or NOT. (using bitwise operators)As AndreyT says, the answer can be found in Hacker\'s Delight:[详细]
2022-12-16 22:22 分类:问答