C++20 sections · 1024 units
Open in CourseQuiz: Use Cases
Knowledge check
Check Your Understanding
Which structure best represents a weighted graph edge?
- A.tuple<int, int, int> for (weight, from, to)
- B.pair<int, int> for (from, to)
- C.vector<int> with 3 elements
- D.string like "1-2:5"