NeetCode #481LC-1166MediumTries
← Back to All Problems#481 · #1166 · Design File System(设计文件系统)
📌 Problem Statement & Constraints
Design a file system with
createPath(path, value) (returns false if the path exists or its parent does not) and get(path) (returns the value or -1). Paths are of the form /a/b/c. Constraints: 1 <= path.length <= 100; at most 10^4 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!