3760. Maximum Substrings With Distinct Start
You are given a string
sconsisting of lowercase English letters.Return an integer denoting the maximum number of substrings you can split
sinto such that each substring starts with a distinct character (i.e., no two substrings start with the same character).
1 | class Solution { |