Problem 3022 · Hard

Minimize OR of Remaining Elements Using Operations

Decide the answer bit by bit from the top: a bit may be cleared if the array can be split into segments whose ANDs avoid it within k merges.

Open the interactive visualisation