🚀 531st Problem on the Road to 1000 LeetCode Problems
https://leetcode.com/problems/kill-pr...
Mistakes made:
Instead of traversing from root process, we can traverse from process with id = kill and get rid of the extra boolean, to_kill. Time and space complexity remains unchanged
#dsa #leetcode #programming #python #premium