Problem 3471 · Easy

Find the Largest Almost Missing Integer

Count the length-k windows that contain each value, then keep the largest value that sits in exactly one window.

Open the interactive visualisation