Quote:
Please help me for logic.
I fear there is no such logic, or it is not linked list anymore.
Linked list is a data structure, and each data structure have its own set of advantages and disadvantages, you choose the data structure depending on your usage of the data.
If you have copy the list to another data structure to perform heap search the cost of building that structure us usually more than the gain of using that structure.