Algorithm · Google · Medium
Given a string S, implement the following function: Split S into two strings, S1 and S2. Return how many such splits produce the same number of unique characters in S1 and S2. Constraints: No input constraints are specified in the available statement. Example Explanation: There are three division points that create two nonempty parts, and every resulting part contains one unique character.
Checking your access…