4 ms·
I found that comparing recursive (your examples are all recursive it seems) and non-recursive traversal code helped me internalize it a great deal, stuff like d
by gtrubetskoy 11y ago
I found that comparing recursive (your examples are all recursive it seems) and non-recursive traversal code helped me internalize it a great deal, stuff like depth-first vs breadth-first depending on whether you're using a stack or a queue.