Domanda di colloquio di 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

Risposta di colloquio

Anonimo

8 mag 2012

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