*"For each of the n*m sums add it to the heap (if it ain't full with k
elements) or replace the root and heapify if the sum is lesser than the
root."* how u can judge which is the next value to be added..

try your algo at

array a 1 2 3 4 5 7 9
and array b 2 3 5 6 7

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to