Anonymous · shared experience1 Oct 2025 · 6 views
Tekion: Build an in-memory file system with cp, mv, mkdir and pwd
Problem. In 45 minutes, design and fully implement a file management system that supports these commands: cp (copy), mv (move), mkdir (make a directory) and pwd (print the current directory).
What to plan for.
- A tree of directory and file nodes with parent links.
- Path parsing for absolute and relative paths, including
... - Deep copy for cp, and re-linking a node for mv.
- Clear errors for missing paths or name clashes.
Context. This was the first of three in-person rounds for an SDE-1 offer, so working code within the time mattered more than extras.
Comments 0
No comments yet. Ask the author something, or add what happened in your own round.