Reddit Question · 2025 Q3

[Interview Experience] Google onsite - I wrote a correct cycle detection algorithm - but realized it was for a directed graph, and the interviewer meant undirected. Will I be penalized?

1 upvote 2 replies

Question Details

Hi all, I recently had my 1st google onsite where I was asked to detect a cycle in a graph and return the nodes forming the cycle. I implemented a DFS…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Graphs