var isPowerOfThree = function(n) {
return checkIsPower(n);
};
const checkIsPower = (n) =>{
if(n<=0){
return false;
};
if(n % 3 === 0){
return checkIsPower(n/3)
}
if(n==1){
return true;
};
return false;
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)