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