Problem 3097 · Medium

Shortest Subarray With OR at Least K II

A sliding window with per-bit counts shrinks from the left while the OR stays at least k.

Open the interactive visualisation