class UnionFindimport { UnionFind } from "https://deno.land/x/masx200_leetcode_test@10.6.0/largest-component-size-by-common-factor/UnionFind.ts"; ConstructorsnewUnionFind()Type ParametersoptionalT = numberMethodsconnected(p: T, q: T): booleanfind(x: T): Tunion(a: T, b: T)