Available question text
Find the maximum bitwise AND achievable by any subarray and return the length of the longest contiguous subarray that attains it. Key observation: the maximum AND equals max(nums), so this reduces to finding the longest run of elements whose bits include all set bits of that maximum.
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 2419. Longest Subarray With Maximum Bitwise AND
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source