We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
This is a Disjoint Set problem, one of the few data structures that are specifically imperative, so I wonder why this problem is in the "Functional Structures" category.
Anyways, here is my Haskell solution using mutable arrays to implement DSU:
Prison Transport
You are viewing a single comment's thread. Return to all comments →
This is a Disjoint Set problem, one of the few data structures that are specifically imperative, so I wonder why this problem is in the "Functional Structures" category. Anyways, here is my Haskell solution using mutable arrays to implement DSU: