Search
⌘K

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.

Comments

Your account is free and you can post anonymously if you choose.