Leetcode 582. Kill Process
Given lists of process IDs and their parent IDs plus a target PID to kill, return that PID and all its descendant PIDs in the process tree; core task is to build a parent→children adjacency and traverse (DFS/BFS) to collect the subtree.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.