โ† Yahoo questions
Low-Level DesignReported in a candidate post, Jul 2012

Represent a file-system tree and compute file sizes under a path

Filed under Yahoo

The question

Represent a directory tree with files and sizes in memory, then return the total size of all files under any given path (e.g. /etc/vpnc gives 114).

No write-up yet. Related questions below have one.

Collected from public candidate posts and coding forums. Updated Nov 2026.