This question evaluates understanding of graph algorithms (topological ordering and cycle detection), layered dependency extraction, and parallel scheduling under resource constraints, testing algorithm design and complexity reasoning in the Coding & Algorithms domain.
You are given N services and dependency pairs (u -> v) meaning u must start before v.