PracHub
QuestionsCoachesLearningGuidesInterview Prep
|Home/Coding & Algorithms/Uber

Produce a valid deployment order

Last updated: Mar 29, 2026

Quick Overview

This question evaluates proficiency in graph algorithms and dependency resolution, including concepts such as topological ordering, cycle detection, and complexity analysis, plus systems-level reasoning about service deployment dependencies.

  • medium
  • Uber
  • Coding & Algorithms
  • Software Engineer

Produce a valid deployment order

Company: Uber

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

You are given N services and a list of dependency pairs (A, B) meaning service B must be deployed before service A. Compute any valid deployment order of all services. If no valid order exists due to cycles, detect the cycle and return an appropriate indication. Describe and implement your approach (e.g., Kahn’s BFS-based algorithm or a DFS-based topological sort), analyze time and space complexity, and explain how you would handle partial deployments, retries, and failure recovery in production.

Quick Answer: This question evaluates proficiency in graph algorithms and dependency resolution, including concepts such as topological ordering, cycle detection, and complexity analysis, plus systems-level reasoning about service deployment dependencies.

Related Interview Questions

  • Thread-Safe Token-Bucket Rate Limiter - Uber (medium)
  • Group Anagrams - Uber (medium)
  • Quadtree for 2D Geospatial Points - Uber (medium)
  • Deep Equality of Two Records - Uber (medium)
  • Shortest Path in a Grid with Blocked Cells - Uber (medium)
|Home/Coding & Algorithms/Uber

Produce a valid deployment order

Uber logo
Uber
Aug 12, 2025, 12:00 AM
mediumSoftware EngineerTechnical ScreenCoding & Algorithms
13
0

You are given N services and a list of dependency pairs (A, B) meaning service B must be deployed before service A. Compute any valid deployment order of all services. If no valid order exists due to cycles, detect the cycle and return an appropriate indication. Describe and implement your approach (e.g., Kahn’s BFS-based algorithm or a DFS-based topological sort), analyze time and space complexity, and explain how you would handle partial deployments, retries, and failure recovery in production.

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More Uber•More Software Engineer•Uber Software Engineer•Uber Coding & Algorithms•Software Engineer Coding & Algorithms
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.