u/1m500

Recursion or Iterative solution for DFS trees/graphs

I'm learning DFS on trees/graphs and wanted to get input from people who've been through technical interviews — does it matter whether you use a recursive or iterative solution? And which one is worth focusing on first?

reddit.com
u/1m500 — 1 day ago