摘要:
Using O(1) time to check whether an integer n is a power of 2. Example For n=4, return true; For n=5, return false; 思路: 知识点: n & (n - 1) 使得从右边数最后一个1变为 阅读全文
posted @ 2016-07-19 11:43
codingEskimo
阅读(132)
评论(0)
推荐(0)

浙公网安备 33010602011771号