Problem 2414 · Medium

Length of the Longest Alphabetical Continuous Substring

Find the longest substring whose letters advance consecutively through the alphabet.

Open the interactive visualisation