Forums Register Login

Finding maximum element in min heap ?

+Pie Number of slices to send: Send
How can you find the maximum element in min heap ?
+Pie Number of slices to send: Send
What is this "min heap"? Is it from here? If so, you'll need some recursion. The maximum of a node is the maximum of its left node, its right node and its own value. The maximum of the left and right nodes is where recursion comes into play.
You know it is dark times when the trees riot. I think this tiny ad is their leader:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 3254 times.
Similar Threads
Why are my Jetty servers eating up so much swap memory?
JVM memory allocation
Total memory won't reduce after freeing memory allocated for String?
Tomcat and Optimizeit throwing Out of memory error
Server Restarted
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 05:09:21.