Problem 2419 · Medium

Longest Subarray With Maximum Bitwise AND

Find the longest subarray attaining the maximum possible bitwise AND.

Open the interactive visualisation