Fundamentals
/
Depth First Search
⏸
00:00
↻
← Prev
Next →
▶
Question
Given the root of a tree where each node has a val and a children array, return all values in DFS (preorder) traversal.
▶
Understand
▶
Approach
▶
My Code
▶
Reference Solution
Compare
26