Problem 3828 · Medium

Final Element After Subarray Deletions

Alice and Bob delete subarrays in turns; the two endpoints decide what can survive.

Open the interactive visualisation