Sollicitatievraag bij HealthTap

Implement BFS iteratively

Antwoord op sollicitatievraag

Anoniem

14 sep 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().