Lakhankumawat/LearnCPP

Merge two binary Max heaps

072arushi opened this issue · 4 comments

Given two binary max heaps as arrays, merge the given heaps to form a new max heap.

Hello @072arushi, thanks for creating your first issue at LearnCPP, hope you followed the guidelines.

Example-

Input :
n = 4 m = 3
a[] = {10, 5, 6, 2},
b[] = {12, 7, 9}
Output :
{12, 10, 9, 2, 5, 7, 6}
Screenshot 2022-05-25 011707

/assign

This issue has been assigned to 072arushi!
It will become unassigned if it is not closed within 12 days. A maintainer can also add the pinned label to prevent it from being unassigned.