Problem
Solution
Initial thoughts
Python implementation
|
|
Java implementation
|
|
Time complexity
O(1).
Space complexity
O(1).
Links
231. Power of Two
(中文版) 算法笔记: 力扣#231 2的幂
|
|
|
|
O(1).
O(1).
231. Power of Two
(中文版) 算法笔记: 力扣#231 2的幂
近期评论