Number of Substrings with Unique Characters

Asked at Capital One · Coding & Leetcode-style Questions · Difficulty: Medium

Given a string s consisting of lowercase letters, find the number of substrings of length 3 where all the characters are different.

Loading the problem…