Practice
Learn
← Quit
0 / 0 correct
Data Structures
Medium
1 of 20
Adjacency matrix vs adjacency list: when is a matrix better?
A
For dense graphs, or when you need O(1) 'is there an edge u→v' checks
B
When memory is tight
C
For sparse graphs with millions of nodes
D
Never