Problem 3934 · Medium

Smallest Unique Subarray

For each start, the shortest unique window is one past its longest agreement with another start. The best start gives the answer.

Open the interactive visualisation