Premium Content
Sign in to see the full question
Get access to the full problem, solutions, follow-up questions, and discussion.
Get access to the full problem, solutions, follow-up questions, and discussion.
A file system is represented as a tree. There are two kinds of nodes:
DirectoryNode: has a children list. A child can be either a DirectoryNode or a FileNode (the two types can be freely...