good evening sir ,
you write a
pq.push({arr[i][0],{i,0}});
what is the meaning of this syntax how to run please explain in detail …
good evening sir ,
you write a
pq.push({arr[i][0],{i,0}});
what is the meaning of this syntax how to run please explain in detail …
hello @vishal_sangal_123
we are storing pair < int , pair < int , int > > iniside priority queue.
so this syntax is nothing but a pair whose first value is is int and second value is itself a pair.
read about pair stl for clarity