0

Given an array of positive integers, find bitwise AND of a subarray, among all subarrays, which is closest to a given positive integer, 'P'.

The solution can obviously be found in O(n^2), but can we do better?

0 Answers0