英文版 582. Kill ProcessGiven n processes, each process has a unique PID (process id) and its PPID (parent process id). Each process only has one parent process, but may have one or more children processes. This is just like a tree structure. Only one p…
public class Solution { public IList<int> KillProcess(IList<int> pid, IList<int> ppid, int kill) { ) { return pid; } int n = pid.Count; Dictionary<int, List<int>> tree = new Dictionary<int, List<int>>(); ; i <…