FastPrepFastPrep
Problem Brief

Triplets With Unique Chars

INTERNOA

1Example 1

Input
string = "abcdaaae"
Output
3
Explanation
Pls see the source image posted in the Problem Source section below for detailed explanation.. Thank you so much for your understanding!

2Example 2

Input
string = "abacaba"
Output
2
Explanation
Pls see the source image posted in the Problem Source section below for detailed explanation.. Thank you so much for your understanding!

Constraints

Limits and guarantees your solution can rely on.

1 <= s.length <= 1000
public int tripletsWithUniqueChars(int[][] grid) {
  // write your code here
}
Input

string

"abcdaaae"

Output

3

Sign in to submit your solution.