Triplets With Unique Chars
Asked at ZipRecruiter · Coding Questions · Difficulty: Easy
Given a string, count the number of contiguous substrings of length 3 in which all three characters are distinct (a "triplet with unique chars").
Loading the problem…