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