
leetcode
文章平均质量分 56
tctjx
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Leetcode 238. Product of Array Except Self
原题: Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i]. Solve it without division原创 2016-05-15 20:55:04 · 249 阅读 · 0 评论 -
leetcode 342 Power of four
原题: Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example: Given num = 16, return true. Given num = 5, return false. Follow up: Could you solve it原创 2016-05-07 14:40:54 · 273 阅读 · 0 评论 -
Leetcode 326. Power of Three
原题: Given an integer, write a function to determine if it is a power of three. Follow up: Could you do it without using any loop / recursion? 分析: 对于类似的题可以找到一个通用的解法,即假maxPower是32位整数中,3的最大次幂,原创 2016-05-19 14:15:39 · 259 阅读 · 0 评论