String
1061. Lexicographically Smallest Equivalent String
Given s1 and s2 of equal length, s1[i] and s2[i] are equivalent (and equivalence is reflexive, symmetric, transitive); rewrite baseStr replacing each character with the lexicographically smallest in…
Loading…