839. 相似字符串组(union findbfs)
链接:839. 相似字符串组
题解:
class Solution {
public:int numSimilarGroups(vector<string>& strs) {std::unordered_map<int, std::vector<int>> graph;for (int i 0; i < strs.size(); i) {for (int j 0; j < strs…
2026/9/15 8:41:50