thank you!
great content! really appreciate you doing this in JavaScript!
Follow up: Could you solve it without loops/recursion?
i need more of these videos
bool isPowerOfThree(int n) { if(n<=0)return false; if(n==1)return true; return (floor(log10(n)/log10(3))==log10(n)/log10(3)); } O(1)
why u stop making video please upload more and more video on problem sloving
@JeanNascimentosuissa