Given a string s, partition it into one or more substrings such that no character appears more than once in any single substring.
Return the minimum number of substrings required to obtain such a partition.
Note: Each character in
smust belong to exactly one substring in the partition.
Constraints:
s.length
s consists only of lowercase English letters.
Given a string s, partition it into one or more substrings such that no character appears more than once in any single substring.
Return the minimum number of substrings required to obtain such a partition.
Note: Each character in
smust belong to exactly one substring in the partition.
Constraints:
s.length
s consists only of lowercase English letters.