Problem · String
Triplets With Unique Chars
Learn this problemFunction
tripletsWithUniqueChars(text: String) → intExamples
Example 1
text = "abcdaaae"return = 3Pls 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 = 2Pls 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