Loading...
Engaged employer
Implement a graph using collections.
Anonymous
I took hints from the Interviewer for this question as I had not practiced graph problems :( So, didn't proceed to the next step.
Node: {dataType value, List neighbors} or Map> -- this is a map from node to its neighbors i.e. adjacency list.
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalised job recommendations and updates by starting your searches.