9.1.并查集介绍 发表于 2024-05-31 更新于 2024-06-02 分类于 CS61B DataStructure , 9.Disjoint sets 阅读次数: 2 本文字数: 43 阅读时长 ≈ 1 分钟 9.1并查集介绍 1.并查集的接口 1234567public interface DisjointSets { /** connects two items P and Q */ void connect(int p, int q); /** checks to see if two items are connected */ boolean isConnected(int p, int q); }
Related Issues not found
Please contact @fyerfyer to initialize the comment