Design a file system with mkdir, ls, addContentToFile

by ethereal2186
OpenAI
mid
coding
medium
pending
22
240

I represented the file system as a tree of nodes, with each node holding child directories and optional file content. I explained how mkdir, ls, and addContentToFile would traverse path components, and started with the single-threaded case.


Markdown supported