Problem · String

Triplets With Unique Chars

Learn this problem
EasyZipRecruiter logoZipRecruiterINTERNOA

Function

tripletsWithUniqueChars(text: String) → int

Examples

Example 1

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

Example 2

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

Constraints

1 <= text.length <= 1000

More ZipRecruiter problems

drafts saved locally
public int tripletsWithUniqueChars(String text) {
  // write your code here
}
text"abcdaaae"
expected3
checking account