LeetCode-231

Links:https://leetcode.com/problems/power-of-two/

Given an integer, write a function to determine if it is a power of two.

 

思路:和前一篇一样。采用第一种方法。

http://blog.tk-xiong.com/archives/346

 

【LeetCode】231. Power of Two
Tagged on:
0 0 vote
Article Rating
订阅
提醒
0 评论
Inline Feedbacks
View all comments