Add solution for "Day 18: RAM Run", part 1

This commit is contained in:
2025-05-22 18:28:47 +02:00
parent 99c31bc0ea
commit bb1dab33e9
5 changed files with 164 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ class WeightedEdgeGraph
{
public:
WeightedEdgeGraph();
int addVertex(const int weight);
int addVertex(const int weight = 0);
void addEdge(const int vertex1, const int vertex2, const int weight);
int getVertexWeight(const int vertex) const;
int getEdgeWeight(const int edge) const;