Available question text
Determine whether a given 32-bit integer n is a power of two (i.e., n == 2^x for some integer x), returning false for non-positive values. A common O(1) approach uses a bit-manipulation pattern to check this without loops.
Related questions
Continue with questions that share topics or the same question type.
- Add two decimal strings e.g. '123.45' + '236.7'
Coding
- Add Two Integers
Coding · Math
- Add Two Numbers
Coding · Linked List · Math · Recursion
- Add Two Numbers II
Coding · Linked List · Math · Stack
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
Meta
Leetcode 231. Power of Two
Reported Aug 8, 2024 · 1 source report
SENIOR
Source snapshot: Nov 12, 2026
View source