What are weighted graphs, and how are they represented in data structures?
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: easy
Interview Round: Other
Overview: Explain what a weighted graph is and how its edge weights are stored in common graph representations. Tests understanding of the memory and lookup trade-offs between representations and how the choice affects shortest-path and spanning-tree algorithms.