回到首页

输入关键词,多个关键词用空格分隔。

← 面试刷题笔记 · 系列目录

File System

约 1 分钟
本页目录

File System

Explain the data structures and algorithms that you would use to design an in-memory file system. Illustrate with an example in code where possible.

Solution

Files and Directories. Each Directory contains a set of Files and Directories.

  • abstract class Entry
  • class File extends Entry
  • class Directory extends Entry

具体的操作,根据和面试官的讨论找着写就行了

相关文章