Skip to main content

Practice · 2 of 3

Critical Chain Length

CHALLENGE
Difficulty: intermediate+25 XP

Requests form a dependency chain: each request may name the request it waited on ("after"). Write chainLength(requests, id) returning how many hops from the initial request to id inclusive. requests is an array of { id, after: null | otherId }. Root requests have after null.

Back to lesson: Practice: Waterfall & Blocking — Practice