Getting wrong answers in q2 , q5 and q7. please explain

getting wrong answers in q2 , q5 and q7. please explain.

Hey @niketagarwal10
Please share the screenshots of the questions.

According to Q2:
Heap is
…10
.8 …5
3.2
After inserting 1
…10
.8 …5
3.2 .1
After inserting 7
…10
.8 …7
3.2. 1.5
So level order should be 10 8 7 3 2 1 5

Ques 5 :Knowing that the time complexity to build a heap from an array with N elements is O(N) in best case…so for (m+n)+n elements, it should be O(m+2n)
So answer should be O(m+n).

Ques 7: One of the solution of O(n) complexity can be to take the ‘n’ elements of the heap and other ‘n’ elements together and construct heap in O(2n) = O(n).