#include using namespace std; void ksmallest(int *a,int n,int k){ /*priority_queue ,greater > pq; /// min for(int i=0;i ,greater > pq(a,a+n); /// min O(N) /// pop k elements for(int i=1;i<=k;i++){ cout< pq; /*for(int i=0;i k){ pq.pop(); /// largest element will be deleted } } /// k elements while(!pq.empty()){ cout<