# Leetcode 326 - Power of three

Note: It’s not that hard but there are some traps in this problem.

method 1:

method 2: