Intuit Interview Question 2025-April | System Design (In-Memory File System)

Amazon · Question · Posted Jun 2026

Question 1: Design In-Memory File System Problem Statement Design a data structure that strictly simulates an in-memory file system. Implement the FileSystem class with the following methods: FileSystem() Initializes the object of the system. List<String> ls(String path) If path is a file path, returns a list containing only this file's name. If path is a directory, returns the list of file and directory names in this directory. The answer should be lexicographically sorted. void mkdir(String path) Makes a new directory ...

The full answer & interview discussion are available to premium members.

Log in Create a free account