retagged by
842 views

1 Answer

2 votes
2 votes
If we have $n+m$ elements then we can perform build heap on these $n+m$ elements and for that time complexity = $O(n+m)$.

Related questions