Model N Interview Question: 1)How do u find the Circles i... | Glassdoor.co.in

Interview Question

Senior Member of Technical Staff Interview Hyderabad

1)How do u find the Circles in a graph. Write the algorithm

  on the board.. 2) Implement a Queue using Stacks 3) Reverse a linked list in a optimized algorithm
Tags:
data structures
Answer

Interview Answer

1 Answer

0

Pushing the nodes to the queue in BFS order and search for the repetitions.

Interview Candidate on 08-May-2012

Add Answers or Comments

To comment on this, Sign In or Sign Up.