[Solved] Quick Union Functional Style [closed]
I think I got it. The solution was odd because it makes me wonder how does the original solution even worked. Basically I just rewrote the counter() in the parent class to return a array.distinct.length , i.e. the distinct integers or the roots: /* * takes the initial number of components * as its argument … Read more