class PersistentUnionFind

Defined in:

datastructure/persistent_union_find.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(size : Int) #

[View source]

Instance Method Detail

def root(x : Int) #

[View source]
def same?(x : Int, y : Int) #

[View source]
def size(x : Int) #

[View source]
def unite(x : Int, y : Int) : Tuple(Bool, PersistentUnionFind) #

[View source]