We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04a56e1 commit d73e182Copy full SHA for d73e182
tree/union_find/implementation_example/union_find.c
@@ -6,7 +6,7 @@
6
/* By: jko <[email protected]> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2020/04/12 22:05:26 by jko #+# #+# */
9
-/* Updated: 2020/04/13 17:45:09 by jko ### ########.fr */
+/* Updated: 2020/04/23 13:39:13 by jko ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
@@ -36,7 +36,7 @@ t_node *find(t_node *node)
36
bool is_disjoint(t_node *node1, t_node *node2)
37
{
38
if (!node1 || !node2)
39
- return (false);
+ return (true);
40
return (!(find(node1) == find(node2)));
41
}
42
0 commit comments