Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
387 B
1
Indexable
Never
i have one dsa question asked in interview can you help me code in java
Find the process id responsible for the crash from the list of process ids.
Basically, you need to find the root element from among these elements. Root is the only one that doesn't have a parent.
So if that element occurs in any of the other child elements, then it is not the root, similarly search and backtrack.