You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// First Approach - Backtracking method tracking every valid path of split substrings, returning the max value of leaves set size. (237ms - Beats 12.5%)
function maxUniqueSplit(s: string): number {
function backtrack(ongoingString: string, index: number, substringsSet: Set<string>): number {