HealthTap Interview Question

Implement BFS iteratively

Interview Answer

Anonymous

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