Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update tests/DataStructures/DisjointSetTest.php
Co-authored-by: Brandon Johnson <[email protected]>
  • Loading branch information
Ramy-Badr-Ahmed and darwinz authored Sep 11, 2024
commit 0591a6fd3da1e85cfca1ff55b28f99629ca59b64
3 changes: 2 additions & 1 deletion tests/DataStructures/DisjointSetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ private function inSameSet(int $i, int $j): bool
];

foreach ($sets as $set) {
if (in_array($i, $set) && in_array($j, $set))
if (in_array($i, $set) && in_array($j, $set)) {
return true;
}
}

return false;
Expand Down