1780-check-if-number-is-a-sum-of-powers-of-three

DevGod
Vtuber
/** * @param {number} n * @return {boolean} */var checkPowersOfThree = function(n) { return !n.toString(3).includes("2");};
/** * @param {number} n * @return {boolean} */var checkPowersOfThree = function(n) { return !n.toString(3).includes("2");};