Skip to content

Commit 0aa7581

Browse files
committed
Fixed sonar
1 parent e1f1d33 commit 0aa7581

File tree

1 file changed

+2
-1
lines changed
  • src/main/java/g0901_1000/s0990_satisfiability_of_equality_equations

1 file changed

+2
-1
lines changed

src/main/java/g0901_1000/s0990_satisfiability_of_equality_equations/Solution.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ private int find(int x) {
99
if (parent[x] == x) {
1010
return x;
1111
}
12-
return parent[x] = find(parent[x]);
12+
parent[x] = find(parent[x]);
13+
return parent[x];
1314
}
1415

1516
public boolean equationsPossible(String[] equations) {

0 commit comments

Comments
 (0)