1 public boolean isPowerOf2 (int num){ 2 return num & (num -1) == 0) 3 }
posted on 2019-09-08 18:26 自律的蚂蚁 阅读(657) 评论(0) 收藏 举报