i'm making an operator for dijkstra.
struct st{
int node,cost;
bool operator<(const st &p) const{
return cost<p.cost;
}
};
Is this the right one i'm looking for?
i'm making an operator for dijkstra.
struct st{
int node,cost;
bool operator<(const st &p) const{
return cost<p.cost;
}
};
Is this the right one i'm looking for?