📜  什么是字典上最小的字符串 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:34.160000             🧑  作者: Mango

代码示例1
Input: A = "hello", B = "world", S = "hold"
Output: "hdld"
Explanation:  Based on the equivalency information in A and B, we can group their characters as [h,w], [d,e,o], [l,r]. So only the second letter 'o' in S is changed to 'd', the answer is "hdld".