Problem 1763 · Easy

Longest Nice Substring

Find the earliest longest substring containing both cases of every letter it uses.

Open the interactive visualisation