Available question text
Given n and x, construct a strictly increasing array of n positive integers whose bitwise AND equals x and return the smallest possible value of the final element. The core challenge is a bit-manipulation/greedy task: preserve all bits set in x across every element while distributing/clearing other bits across elements so the last element is minimized.
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 3133. Minimum Array End
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source