Skip to content

Commit 90cae7f

Browse files
author
lennart
committed
fix formatting issues
1 parent 135a7c5 commit 90cae7f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/main/java/com/thealgorithms/tree/CentroidDecomposition.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
* </ul>
2222
*
2323
* <p>
24-
* <strong>Reference:</strong> https://medium.com/carpanese/an-illustrated-introduction-to-centroid-decomposition-8c1989d53308<br>
24+
* <strong>Reference:</strong>
25+
* https://medium.com/carpanese/an-illustrated-introduction-to-centroid-decomposition-8c1989d53308<br>
2526
* <strong>Author:</strong> Lennart S.<br>
2627
* <strong>GitHub:</strong> https://github.com/lens161<br>
2728
* </p>
@@ -154,7 +155,9 @@ public void findCentroid(int src, int previousCentroid) {
154155
}
155156

156157
for (int node : tree[src]) {
157-
if (!centroidMarked[node]) findCentroid(node, src);
158+
if (!centroidMarked[node]) {
159+
findCentroid(node, src);
160+
}
158161
}
159162
}
160163

0 commit comments

Comments
 (0)