InterviewDB Question

Alive Nodes - Count Reachable Nodes in a Directed Graph After Edge Failures

Question Details

Round 1 - Coding Problem You are given a directed graph of n nodes and a list of edges. Some edges randomly fail (given as a separate list). A node is "alive" if it is reachable from node 0 using only non-failed edges. Return the count of alive nodes…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Onsite Phone