From 87818848122ac94995e359a8db3a0ed9a9173d42 Mon Sep 17 00:00:00 2001 From: kartofen Date: Sat, 29 Oct 2022 13:18:45 +0300 Subject: implemented --- src/set.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/set.h (limited to 'src/set.h') diff --git a/src/set.h b/src/set.h new file mode 100644 index 0000000..b92d229 --- /dev/null +++ b/src/set.h @@ -0,0 +1,14 @@ +#ifndef SET_H +#define SET_H + +typedef struct set { + struct set *parent; + int rank; +} set; + +set *set_create(); +void set_free(set *s); + +set *set_find(set *s); +void set_union(set *x, set *y); +#endif -- cgit v1.2.3