title: How can I remember which data structures are used by DFS and BFS?
body: <p>I always mix up whether I use a stack or a queue for DFS or BFS. Can someone please provide some intuition about how to remember which algorithm uses which data structure?</p>