Problem 1061 · Medium

Lexicographically Smallest Equivalent String

Merge letters that appear at the same position of s1 and s2, always keeping the smaller letter as the set root.

Open the interactive visualisation