1525. Number of Good Ways to Split a String
Description
**Input:** s = "aacaba"
**Output:** 2
**Explanation:** There are 5 ways to split "aacaba" and 2 of them are good.
("a", "acaba") Left string and right string contains 1 and 3 different letters respectively.
("aa", "caba") Left string and right string contains 1 and 3 different letters respectively.
("aac", "aba") Left string and right string contains 2 and 2 different letters respectively (good split).
("aaca", "ba") Left string and right string contains 2 and 2 different letters respectively (good split).
("aacab", "a") Left string and right string contains 3 and 1 different letters respectively.
**Input:** s = "abcd"
**Output:** 1
**Explanation:** Split the string as follows ("ab", "cd").ac
Previous1524. Number of Sub-arrays With Odd SumNext1526. Minimum Number of Increments on Subarrays to Form a Target Array
Last updated