Number of Good Ways to Split a String
Count split points where each side has the same number of distinct letters by building prefix and suffix tallies. The visual shows the two halves and their letter counts.
Count split points where each side has the same number of distinct letters by building prefix and suffix tallies. The visual shows the two halves and their letter counts.