cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
remove any node in a leftist heap
remove any node in a leftist heap
Nov 18, 2015 at 5:07am UTC
HG319
(98)
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.