1、交换字符串中的元素: https://leetcode-cn.com/problems/smallest-string-with-swaps/solution/bing-cha-ji-by-liyiping/
并查集详解见博客:https://blog.csdn.net/qq_41593380/article/details/81146850
并查集
原文:https://www.cnblogs.com/sunshine1218/p/13047359.html