Problem 1493 · Medium

Longest Subarray of 1's After Deleting One Element

Find the longest run of ones after removing exactly one element. The visual slides a window that allows one zero.

Open the interactive visualisation