1593. Split a String Into the Max Number of Unique Substrings
Description
**Input:** s = "ababccc"
**Output:** 5
**Explanation**: One way to split maximally is ['a', 'b', 'ab', 'c', 'cc']. Splitting like ['a', 'b', 'a', 'b', 'c', 'cc'] is not valid as you have 'a' and 'b' multiple times.**Input:** s = "aba"
**Output:** 2
**Explanation**: One way to split maximally is ['a', 'ba'].**Input:** s = "aa"
**Output:** 1
**Explanation**: It is impossible to split the string any further.ac
Last updated