Design File System
Build a path store where a new path can take a value only when it does not exist yet and its parent already does. Lookups return the stored value, or -1 for an unknown path.
Build a path store where a new path can take a value only when it does not exist yet and its parent already does. Lookups return the stored value, or -1 for an unknown path.