Given a string s, partition it into the maximum number of contiguous substrings such that every substring starts with a distinct character.
Return the maximum number of substrings that can be obtained from such a partition.
Constraints:
s.length
s consists of lowercase English letters.
Given a string s, partition it into the maximum number of contiguous substrings such that every substring starts with a distinct character.
Return the maximum number of substrings that can be obtained from such a partition.
Constraints:
s.length
s consists of lowercase English letters.