Available question text
Determine whether a given integer n is a power of four (n == 4^x for some integer x). The key is an O(1) check using number properties (n>0, exactly one set bit like a power of two, and that bit lies in an even position) to avoid loops/recursion.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 342. Power of Four
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source