| 15 | vector<int> info_time; |
| 16 | public: |
| 17 | int dfs(int id) { |
| 18 | if (subo[id].size() == 0) return 0; |
| 19 | int res = 0; |
| 20 | for (int sub: subo[id]) |
| 21 | res = max(res, dfs(sub) + info_time[id]); |
| 22 | return res; |
| 23 | } |
| 24 | |
| 25 | int numOfMinutes(int n, int headID, vector<int>& manager, vector<int>& informTime) { |
| 26 | subo.resize(n, vector<int>()); |
nothing calls this directly
no outgoing calls
no test coverage detected