Parameterize references to generic types. (#5078)

* chore: remove unused imports

* fix: parameterize references to generic types


---------

Co-authored-by: vil02 <65706193+vil02@users.noreply.github.com>
This commit is contained in:
SOZEL
2024-03-16 01:03:27 +07:00
committed by GitHub
parent ab371843ac
commit 192427a5d2
7 changed files with 9 additions and 10 deletions

View File

@ -45,7 +45,7 @@ public class UnionFind {
}
public int count() {
List parents = new ArrayList();
List<Integer> parents = new ArrayList<>();
for (int i = 0; i < p.length; i++) {
if (!parents.contains(find(i))) {
parents.add(find(i));