Hi,
I was looking for a solution for Successor with delete problem and came across this repo.
From a glance it looks like your solution is correct but the problem is that union operation in QuickFindUF is linear. Have you figured out the correct answer for this? I'm struggling to understand the motivation of deleting using Union Find data structure.
Hi,
I was looking for a solution for Successor with delete problem and came across this repo.
From a glance it looks like your solution is correct but the problem is that union operation in QuickFindUF is linear. Have you figured out the correct answer for this? I'm struggling to understand the motivation of deleting using Union Find data structure.