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 投票数
Article Rating
订阅评论
提醒

0 评论
内联反馈
查看所有评论