Problem 9: Lexicographically Smallest Equivalent String
You are given two strings of the same length s1 and s2 and a string baseStr.
We say s1[i] and s2[i] are equivalent characters.
For example, if s1 = “abc” and s2 = “cde”, then ...
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy