Problem 1024 · Medium

Video Stitching

Extend the covered prefix with the clip that starts inside it and reaches furthest.

Open the interactive visualisation