Question
Which statement about Graphs and Adjacency Lists is the strongest interview answer?
- Graphs and Adjacency Lists is mostly a naming style choice and has little effect on runtime behavior or design tradeoffs.
- Graphs and Adjacency Lists exists mainly to reduce the number of files in a Python project.
- An adjacency list stores each node's outgoing neighbors and is the standard sparse-graph representation in many interview solutions.
- Graphs and Adjacency Lists matters only for frontend scripting and not for backend or automation code.
Hint
Start with the core rule behind Graphs and Adjacency Lists.
Answer and rationale
Correct answer: C. An adjacency list stores each node's outgoing neighbors and is the standard sparse-graph representation in many interview solutions.
An adjacency list stores each node's outgoing neighbors and is the standard sparse-graph representation in many interview solutions. This is the base concept interviewers commonly test first.
Track: Python