I would like to improve my DisjointSet class implementation in Python. I would be grateful for specific advice. I use it in online contests so it must be short, quick and reusable. from copy import copy class DisjointSet: def __init__(self, s=None): if not s is None: self.__par = {x:x for x in s} self.__csz =Read more