6.3. Quiz
This section provides exercises for better understanding in disjoint sets.
Last updated
Was this helpful?
This section provides exercises for better understanding in disjoint sets.
Last updated
Was this helpful?
Was this helpful?
public int find(int id) {
return (subsets[id] < 0) ? id : (subsets[id] = find(subsets[id]));
}