1125. Design File System

Medium
Hash Table
String
Design
Trie

Description

Hints

Hint 1
What if you think of a tree hierarchy for the files?.
Hint 2
A path is a node in the tree.
Hint 3
Use a hash table to store the valid paths along with their values.

Statistics

Acceptance
65.1%
Submissions
134,211
Accepted
87,313