Practice
Learn
← Quit
0 / 0 correct
Data Structures
Medium
1 of 110
Adjacency matrix vs adjacency list: when is a matrix better?
A
When memory is tight
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
Never