Oracle Interview Question

Implement a graph using collections.

Interview Answers

Anonymous

Jul 17, 2018

I took hints from the Interviewer for this question as I had not practiced graph problems :( So, didn't proceed to the next step.

1

Anonymous

Aug 2, 2019

Node: {dataType value, List neighbors} or Map> -- this is a map from node to its neighbors i.e. adjacency list.