Problem 1024 · Medium
Extend the covered prefix with the clip that starts inside it and reaches furthest.
Open the interactive visualisation