remove any node in a leftist heap

I am writing a code which should be able to remove any node in the leftist heap, not just the min.
I have a parent, left, right pointers. For the node I want to remove I would like to percolate the node up to the top and use delete min.

I am having trouble percolating up.

I was hoping someone can help.
Topic archived. No new replies allowed.