What data structure do you use for DFS and BFS?
Anonymous
Since BFS traverses through each node's level first then goes to the other leve DFS processes by stack since it is depth based it first traverse on each depth.
Check out your Company Bowl for anonymous work chats.