payal-kothari
6/22/2017 - 7:29 AM

DFS BFS

BFS - use Queue (Queue<E> q = new LinkedList();)

DFS - use stack (Stack st = new Stack();)