1.

To create an adjacency list C++’s map container can be used.(a) True(b) FalseThe question is from Adjacency List topic in section Graph of Data Structures & Algorithms II got this question during an interview for a job.

Answer»

Correct answer is (a) True

To EXPLAIN: We can create a mapping from string to a vector, where string would be the NAME of the vertex and vector would CONTAINS the name of the VERTICES to which it is connected.



Discussion

No Comment Found

Related InterviewSolutions