I saw this question: Algorithm for merging two max heaps? and I want to add something - The max-heaps are at different size...
So my question is - If we have two max-heaps A and B that have a and b elements, and we know that the smallest element at A is bigger from the root (the biggest element) of B - How we can make a one max-heap at O(b)?
Thank you!