Build a File-System Hash Tree

Implement a HashTree representing a file system.

A file system consists of files and directories:

  • A file node stores text content, and its hash is hash_text(content).
  • A **directory nod...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: