#3133

Minimum Array End

specialist · 795 · lc medium +31 · 55.5% accepted · 814 likes · top 49%

Description

Given integers n and x, build a strictly increasing array of n positive integers whose bitwise AND equals x. Return the minimum possible value of the last element.

Code

1
2
3