Available question text
Determine whether the binary representation of a positive integer has alternating bits, i.e., every pair of adjacent bits differs. The task focuses on an efficient bitwise or constant/logarithmic-time check rather than full string parsing.
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 693. Binary Number with Alternating Bits
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source