Lakhankumawat / LearnCPP

Learn Cpp from Beginner to Advanced ✅ Practice 🎯 Code 💻 Repeat 🔁 One step solution for c++ beginners and cp enthusiasts.
https://lakhankumawat.github.io/LearnCPP/
MIT License
598 stars 484 forks source link

Merge two binary Max heaps #1530

Closed 072arushi closed 2 years ago

072arushi commented 2 years ago

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

github-actions[bot] commented 2 years ago

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

072arushi commented 2 years ago

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

072arushi commented 2 years ago

/assign

github-actions[bot] commented 2 years ago

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.