Smallest window in a string containing all distinct characters
Filed under Veritas
The question
Find the minimum length of a substring in a given string that contains all distinct characters present in the entire string.
No write-up yet. Related questions below have one.
Related Veritas questions
Collected from public candidate posts and coding forums. Updated Nov 2026.