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