Pregunta de entrevista de Model N

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

Respuesta de la entrevista

Anónimo

8 may 2012

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