582 Kill Process
582. Kill Process
1. Question
Input:
pid = [1, 3, 10, 5]
ppid = [3, 0, 5, 3]
kill = 5
Output:
[5,10]
Explanation:
3
/ \
1 5
/
10
Kill 5 will also kill 10.2. Implementation
3. Time & Space Complexity
Last updated