LeetCode Question · Jun 2021

Amazon Phone Interview | SDE

1 upvote 866 views 6 replies

Question Details

Given a graph, compelete the function below to find the longest path. public int findLongestPath(Map<Integer,List<Integer>>){ } Input Map: 1 [2,3,4] 2 [1,5,6] 3 [1] 4 [1,7] 5 [2] 6 [2] 7 [4] O/p - 4

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Graph