Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class UnionFind
import { UnionFind } from "https://deno.land/x/masx200_leetcode_test@10.2.2/largest-component-size-by-common-factor/UnionFind.ts";

Constructors

new
UnionFind()

Methods

find(x: number)
union(a: number, b: number)