// target 需要判断的数字, count 判断target 数字的 二进制中 第count位是否为0
public boolean isZero(int target,int count){
return (target >> count &1) == 0 ;
}
判断数字 的二进制中某位是否为0
最新推荐文章于 2022-11-21 10:04:40 发布
// target 需要判断的数字, count 判断target 数字的 二进制中 第count位是否为0
public boolean isZero(int target,int count){
return (target >> count &1) == 0 ;
}