Given a string s, find the number of good splits of the string.
A split is considered good if s is divided into two nonempty substrings p and q such that their concatenation forms s, and the number of distinct characters in p equals the number of distinct characters in q.
Return the total number of good splits of s.
Constraints:
s.length
s consists of only lowercase English letters.
Given a string s, find the number of good splits of the string.
A split is considered good if s is divided into two nonempty substrings p and q such that their concatenation forms s, and the number of distinct characters in p equals the number of distinct characters in q.
Return the total number of good splits of s.
Constraints:
s.length
s consists of only lowercase English letters.