Hi,
I got this question in my Uber design in specialization round:
Design In memory file system and implement:
Create
Delete
Move
Interviewer was particularly interested in Move method and implementation.
Btw, this system should support Drive,Folder,File types (Drive being on the top hierarchy)
My approach is to create a map of <Path,Entity> and change the path in move. Anyone can tell me of a better approach. I am waiting for my results.