InterviewDB Question

Build Architect: Design a Dependency-Aware Build System

Question Details

Problem Design a build system that compiles targets in dependency order, using cached results where possible. Each target has a list of source files and dependencies on other targets. A target needs rebuilding if any source file or dependency has changed since the last build. Example Follow-ups How do you detect circular dependencies? Which targets can be built in parallel? How do you schedule them? How would you implement content-based caching (hash of inputs) vs. timestamp-based?

Full Details

🔒

Unlock all Reddit questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a reddit interview during the phone round.

It covers the following topics: System Design, Coding, Phone, Onsite .