Count Magical String Pair Triples
Given a string s consisting only of lowercase letters, two non-empty strings s1 and s2 are called a magical string pair if the sets of distinct characters they contain are identical.
Count the triple...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
