Compute the total size of a file or directory in a directory tree.
Unlock detailed company stats for this questionUpgrade
Given the root of a directory tree and a path to a specific file or directory, write an algorithm to compute the total size of that file or directory. Run the code to verify it.
Format · LinkedIn coding-with-AI round.
Community answers
No answers contributed by the community yet.
Related questions
Compute the total travel of a lift that serves calls in order.Compute the total time for an orb starting on each tile of a corridor to escape.Related courses

Course

Course
Course
