← Questions

In-memory file system with files and folders

0
HarveyPerplexitySnowflake+1CodingLast asked Nov 2026

A coding interview question asked in Harvey's coding round and at Perplexity, Snowflake and 1 more company, last asked Nov 2026. It tests filesystem, hash map and parsing.

Build an in-memory file system addressed by slash-separated paths. Adding a file creates any folders on its path.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Harvey · Coding · Last asked Nov 202660 min · Live practical coding · Candidates report freedom to use the tools and languages they know; confirm with your recruiter
  • Perplexity · Technical screen or assessment · Last asked Oct 2026Online assessment or live coding (often CoderPad); problems come in parts, each adding a requirement to your code · Assume no AI unless the recruiter says otherwise
  • Snowflake · Coding · Last asked Aug 202660 min · Live coding; senior loops may agree a small storage component together, then build it
  • Uber · Coding · Last asked Aug 202660 min · Two rounds; one is often object-oriented design (a parking lot, a meeting scheduler, an expression evaluator) · No AI, except a newer AI-assisted debugging round in some senior loops

What it tests

filesystem · hash map · parsing · recursion

Your code and the AI tutor open when you unlock this question.