InterviewDB Question

House Building: Schedule Construction Tasks Respecting Dependencies

Question Details

Round 1 - Coding Problem A house is built in stages. Each stage has a name, a duration in days, and a list of prerequisite stages that must be completed first. Return the minimum number of days to complete the entire house, and the order stages should be executed. Example Follow-ups How do you detect a cycle in the dependency graph? If multiple workers are available in parallel, how does that change the minimum duration calculation? How would you identify the critical path — the sequence of stag…

Full Details

🔒

Unlock all Glean questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

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

It covers the following topics: Coding, Graph, Phone, Onsite .