← Flipkart questions

Lexicographically Smallest Range for Bitwise AND

Filed under Flipkart

Given an array of integers, find the contiguous subarray range [l, r] such that the bitwise AND operation of the two largest elements in that range is maximized. If there are multiple ranges, return…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Flipkart questions

Collected from public candidate posts and coding forums. Updated Nov 2026.