Parallel Bring-Up Waves For New Data Hall Dependencies

Last updated: November 29, 2026

Quick Overview

Given the components of a new GPU cluster (power, cooling, switches, BMCs, OS images, Kubernetes) and dependency pairs saying which must be healthy before another starts, return the waves of components that can be brought up in parallel, or report a cycle.

Crusoe
Coding & Algorithms
Software Engineer
Crusoe
November 29, 2026
Software Engineer
Technical Screen
Coding & Algorithms
Medium

0

0

0 solved


Given the components of a new GPU cluster (power, cooling, switches, BMCs, OS images, Kubernetes) and dependency pairs saying which must be healthy before another starts, return the waves of components that can be brought up in parallel, or report a cycle.

Crusoe automates cluster bring-up so a new data hall goes from racked hardware to schedulable GPUs quickly, and steps that can run in parallel should. The interviewer checks Kahn's algorithm, level-by-level output, and a useful error when the dependency graph has a cycle.

What the Interviewer Expects
  • Models dependencies as a directed graph with in-degrees
  • Uses BFS by levels (Kahn) to produce parallel waves
  • Detects a cycle by counting processed nodes and names the stuck components
  • Runs in O(V + E)
  • Discusses deterministic ordering inside a wave
Key Topics to Cover
Topological sort
Kahn's algorithm
Cycle detection
Critical path
Infrastructure automation
How to Approach This
  1. Clarify input constraints and edge cases before writing code.
  2. Walk through your approach verbally and confirm with the interviewer before coding.
  3. Start with a brute force solution, then optimize. Mention time and space complexity.
  4. Test your solution with examples, including edge cases like empty input or duplicates.
  5. Consider common patterns: sliding window, two pointers, hash map, BFS/DFS, dynamic programming.
Possible Follow-up Questions
  • Each step has a duration. How do you compute the minimum total bring-up time (critical path)?
  • A step fails midway. How would you retry only what depends on it?
  • How would you bound parallelism to at most k steps at once?
  • How would you express this as a workflow in a real orchestrator?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice DSA Problems
Sample Answer
Requirements

Input: list of component names and pairs (a, b) meaning a before b. Output: list of waves, each wave sorted for stable logs; every component in a wave has all its prerequisites in earlier waves. On ...

High-Level Design

Compute in-degrees, start with all zero in-degree components as wave 1, and repeatedly decrement successors' in-degrees; those reaching zero form the next wave. Waves are exactly the longest-path dept...


Submit Your Answer
Markdown supported

Related Questions