NeetCode #485LC-588HardTriesNC Algo100
← Back to All Problems

#485 · #588 · Design In-Memory File System(设计内存文件系统)

📌 Problem Statement & Constraints

Design an in-memory file system with ls(path), mkdir(path), addContentToFile(filePath, content) and readContentFromFile(filePath). ls on a directory returns its entries sorted; on a file it returns the file name. Constraints: paths are absolute and start with /; at most 300 calls.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!