Your question is Build a File Management App. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Tell me about your experience building a file management app.
For the hands-on portion, implement recursive directory-size aggregation from a list of absolute file paths and sizes. Given files, return a mapping from every directory, including /, to the total size of files it contains directly or through descendants. Example: [["/docs/a.txt", 10], ["/docs/sub/b.txt", 5]] returns { "/": 15, "/docs": 15, "/docs/sub": 5 }; a root-level file contributes only to /.
/, and contain at least one file name. or .. components/def directory_sizes(files):