Design an in-memory file system with mkdir, pwd and cd.
Unlock detailed company stats for this questionUpgrade
Mimic basic Linux directory operations. mkdir(dirname: string) creates a directory inside the current working directory; pwd() returns the absolute path of the current working directory; cd(path: string) changes the current working directory. A path starting with '/' is absolute from root, otherwise relative to the current directory. A path may contain a wildcard '*' that can match the current directory ('.'), the parent directory ('..') or any child directory. Behavior should be similar to Linux directory navigation commands.
Format · Uber SDE I LLD round.
Community answers
No answers contributed by the community yet.
Related questions
Design an in-memory filesystem.Design and implement an in-memory food ordering system with a driver program.Design a basic file system supporting mkdir and ls.Related courses

Course

Course
Course
