Skip to content

Commit d73e182

Browse files
committed
tree / union-find / is_disjoint
1 parent 04a56e1 commit d73e182

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tree/union_find/implementation_example/union_find.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: jko <[email protected]> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* Created: 2020/04/12 22:05:26 by jko #+# #+# */
9-
/* Updated: 2020/04/13 17:45:09 by jko ### ########.fr */
9+
/* Updated: 2020/04/23 13:39:13 by jko ### ########.fr */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -36,7 +36,7 @@ t_node *find(t_node *node)
3636
bool is_disjoint(t_node *node1, t_node *node2)
3737
{
3838
if (!node1 || !node2)
39-
return (false);
39+
return (true);
4040
return (!(find(node1) == find(node2)));
4141
}
4242

0 commit comments

Comments
 (0)