1class Solution:2 def checkPowersOfThree(self, n: int) -> bool:3 while n > 1:4 n, r = divmod(n, 3)5 if r == 2:6 return False7 return True
WPM •0 •0
ACC •0 •0
TIME •0