SPOJ EXPEDI — Expedition SOLUTION

Revision en1, by sinhadiptiprakash, 2021-04-06 07:46:10

Hey, I just found a problem on spoj EXPEDI — Expedition https://www.spoj.com/problems/EXPEDI/ which is a greedy problem and I came to know that the problem can be solved by using heap(max) data structure. But I was unable to figure out how this problem can be solved using heap. I am new to programming so, please help me with some explanation how to approach this problem with heap. I am eager to learn. Thanks a lot in advance.

Tags #heap, #greedy, #spoj, solution spoj, #help me

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English sinhadiptiprakash 2021-04-06 07:46:10 474 Initial revision (published)