mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-21 02:53:15 +08:00
Cleaned up code for some packages (#5094)
* Cleaned up code of some packages --------- Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
This commit is contained in:

committed by
GitHub

parent
40cd4d86ef
commit
22310defcd
@ -4,8 +4,8 @@ import java.util.*;
|
||||
|
||||
public class UnionFind {
|
||||
|
||||
private int[] p;
|
||||
private int[] r;
|
||||
private final int[] p;
|
||||
private final int[] r;
|
||||
|
||||
public UnionFind(int n) {
|
||||
p = new int[n];
|
||||
|
Reference in New Issue
Block a user