AI工具人
提示词工程师

Leetcode 582. Kill Process

Leetcode 582. Kill Process

  好久没刷题,今天来一道比较简单的题目,如果此题作为一道面试题,可以延伸出树的遍历,栈和队列,hashmap,treemap等,还是比较能考验基础的面试题。

再解释下,贴英文原文不是为了凑字数,而是希望有人搜原文的时候我博客能被索引到,也算是一种简单的SEO。
Given 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 process has PPID that is 0, which means this process has no parent process. All the PIDs will be distinct positive integers.

赞(1) 打赏
未经允许不得转载:XINDOO » Leetcode 582. Kill Process
描述文字

评论 抢沙发

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫

微信扫一扫