priority_queue as argument will not affect actual copy of priority queue.
is it take linear time for copying priority queue ?
and what after completion of function body it automatically removed ?
is any way to remove the element from priority_queue which are not useful or we need top k + 1 elements in priority queue ?
waiting for response …