Implement DeleteTree With Limited Filesystem APIs

Read the full interview experience this question came from →

Quick Overview

Review a filesystem implementation problem that asks you to delete an entire tree using only limited list, delete, and directory-check APIs. The question emphasizes post-order traversal, iterative versus recursive trade-offs, production memory failures, and wide-directory edge cases.

Implement DeleteTree With Limited Filesystem APIs

Company: Datadog

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: medium

Interview Round: Technical Screen

Overview: Review a filesystem implementation problem that asks you to delete an entire tree using only limited list, delete, and directory-check APIs. The question emphasizes post-order traversal, iterative versus recursive trade-offs, production memory failures, and wide-directory edge cases.

Read the full Datadog Software Engineer interview experience this question came from

Datadog logo
Datadog
Jun 11, 2026
mediumSoftware EngineerTechnical ScreenSoftware Engineering Fundamentals
21
0
Loading...