Oracle interview question

Implement a graph using collections.

Interview Answers

Anonymous

17 July 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

2 Aug 2019

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