Given a string, count the substrings that contain only distinct characters.
Unlock detailed company stats for this questionUpgrade
Two substrings are different if they start or end at different positions. The string length is up to 10^5 and uses lowercase English letters. Example: text = "abac" gives 8 ("a", "b", "a", "c", "ab", "ba", "ac", "bac").
Community answers
No answers contributed by the community yet.


