List every file path in a directory tree

0
Remix

Given a directory tree (folders containing files and other folders), return the full path of every file. Write it with a depth-first search, then discuss an iterative version and very deep trees.

NvidiaTechnical phone screenLast asked Mar 2026
No answer yet. Write the first one; the best answer gets endorsed.