Domanda di colloquio di HealthTap

Implement BFS iteratively

Risposta di colloquio

Anonimo

14 set 2016

more or less the same as DFS, except use Queue() instead of a stack, and change the push() and pop() methods to enqueue() and dequeue().