1376 Time Needed to Inform All Employees
Techniques Used
DFS
Graph
Difficulty Level
Medium
Need to Revisit
Approach
Create a minutes array that will store the amount of time that it takes for each employee to receive the news.
We mark the minutes[headID] = 1 so as to distinguish it fro...
raahulsaxena.hashnode.dev2 min read