+1 vote
in Data Structures & Algorithms I by (88.2k points)
To create an adjacency list C++’s map container can be used.

(a) True

(b) False

The question is from Adjacency List topic in section Graph of Data Structures & Algorithms I

I got this question during an interview for a job.

1 Answer

+1 vote
by (737k points)
selected by
Best 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.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.