InterviewSolution
Saved Bookmarks
| 1. |
Space complexity for an adjacency list of an undirected graph having large values of V (vertices) and E (edges) is ___________(a) O(E)(b) O(V*V)(c) O(E+V)(d) O(V)The question is from Adjacency List in section Graph of Data Structures & Algorithms IThis question was posed to me in an interview for job. |
|
Answer» The correct OPTION is (c) O(E+V) |
|