OpenBook
  • Problems
  • Tracks
  • How it works
  • Pricing
Start practicingSign In
Problems/Systems & Infra

14. Service Dependency Impact

Hard

Work out which services a set of changed monorepo paths breaks, from path ownership through deleted subtrees to the dependency graph.

60 minute budget41.0% acceptancegraphs · paths · monorepo

How this problem works

A small TypeScript library with a bug. Part 1: make the failing tests pass without touching tests/. Parts 2 to 4 unlock in order as each part's public tests pass. In a mock interview the product owner asks for a plan before each part, and the grader reads your answer.

  1. 1Fix path normalization for repeated slashes and the root
  2. 2Direct impact
  3. 3Deleted subtree
  4. 4Propagation

Part 1: Fix path normalization for repeated slashes and the root

  1. 01Ownership lookups miss files whose paths arrive with doubled slashes, so changes under them are attributed to nobody.
  2. 02Registering a service at the repository root makes every later ownership lookup blow up instead of falling back to it.
  3. 03Paths with .. are supposed to be rejected, and that part works; keep it that way.

What the hidden tests check in Part 1

  • A path that is nothing but slashes normalizes to the root.
  • Dot segments disappear wherever they appear.
  • Containment is by whole segments: /ab does not contain /abc.
  • Paths with .. still throw a RangeError.

Hints for Parts 2 to 4 appear in the workspace as each part unlocks.

Sign in to start

Attempts, files and transcripts are saved to your account so the grader can review how you worked.

Sign inCreate an account
OpenBook

Practice for interviews where you build a feature with an AI assistant.

Early preview. Problems, grading and the interviewer are still changing.

Practice

  • Problems
  • Tracks
  • How it works
  • Pricing

Legal

  • Terms
  • Privacy
© 2026 OpenBook.