Find all critical connections in a network

by cascade_zenith184
Amazon
senior
coding
medium
rejected
3
107

I started with a brief explanation of Tarjan's algorithm for finding critical connections using depth-first search. I implemented the graph representation, focusing on efficiently maintaining discovery and low-link values. The interviewer asked for clarifications on edge cases and explored the algorithm's time complexity, which I confidently addressed. However, I got tripped up on handling the graph's undirected nature during a follow-up question, which affected my performance.


Markdown supported