342. Power of Four
来源:互联网 发布:java shiro控制到按钮 编辑:程序博客网 时间:2024/05/04 10:06
题目:https://leetcode.com/problems/power-of-four/
代码:
public class Solution { public boolean isPowerOfFour(int num) { if(num==1) return true; if(num<4) return false; int i=0; while(Math.pow(4,i)<num) { i++; } if(Math.pow(4,i)==num) return true; else return false; }}2ms
0 0
- 342. Power of Four
- 342. Power of Four
- 342. Power of Four
- 342. Power of Four
- 342. Power of Four
- 342. Power of Four
- 342. Power of Four
- 342. Power of Four
- 342. Power of Four
- 342. Power of Four
- 342. Power of Four
- 342. Power of Four
- 342. Power of Four
- 342. Power of Four
- 342. Power of Four
- 342. Power of Four*
- 342. Power of Four
- 342. Power of Four
- 左右晃动的动画
- 字符串的包含
- SpringMVC中url-pattern /和/*的区别
- ORA-15045: ASM file name '+FRA' is not in reference form
- 样本统计量与总体的关系,抽样分布的概念性质
- 342. Power of Four
- 关于express中间件的简要解析之应用级、路由级中间件(一)
- 盒子模型
- PHP_SQL根据当前坐标查询5公里以内的信息
- ffmpeg - 几个实用的命令
- 232. Implement Queue using Stacks
- maven项目打包发布问题-Unable to locate Spring NamespaceHandler for XML schema namespace
- 进程等待与终止
- PDF.js 检测文件是否加载完成