Given The Pseudo Code State Whether The Function For Merging Of #912

Given the pseudo code, state whether the function for merging of two heap is correct or not? </p> <pre><code class="language-java"> mergeTree(p,q) if p.root.value <= q.root.value return p.addTree(q) else return q.addTree(p) </code></pre>

Online Quiz This multiple choice question (MCQ) is related to the book/course gs gs121 Data Structures and Algorithms. It can also be found in gs gs121 Heap - Binomial and Fibonacci Heap - Quiz No.1.


Similar question(s) are as followings:



Online Quizzes of gs121 Data Structures and Algorithms

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background