Count substrings with all different characters
Filed under Sprinklr
The question
Given a string of lowercase letters, find the number of substrings in which all characters are distinct.
No write-up yet. Related questions below have one.
Related Sprinklr questions
Collected from public candidate posts and coding forums. Updated Nov 2026.