Skip to content

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

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