could you explain what are these parameters int, vector,greater.
priority_queue<int,vector,greater>p…
like what does it signify while making a priority queue?
Syntax of priority queue
int
is the data type
vector<int>
is the underlying data structure
greater
is the comparator operator (comparator is used to describe the rules of priority of the data)