Noughtmare@programming.dev to Haskell@programming.devEnglish · 6 months agoCompetitive Programming in Haskell: Union-Findbyorgey.github.ioexternal-linkmessage-square4linkfedilinkarrow-up110arrow-down10
arrow-up110arrow-down1external-linkCompetitive Programming in Haskell: Union-Findbyorgey.github.ioNoughtmare@programming.dev to Haskell@programming.devEnglish · 6 months agomessage-square4linkfedilink
minus-squareNoughtmare@programming.devOPlinkfedilinkEnglisharrow-up1·6 months agoAlso, I think the ‘find’ operation could be replaced by an operation that checks if two elements are in the same set. That way you don’t have to come up with a “name”.
Also, I think the ‘find’ operation could be replaced by an operation that checks if two elements are in the same set. That way you don’t have to come up with a “name”.