</>OfferRetriever
DashboardDiscuss
NEW

Spring Hire Sale

Limited Time Deal: Unlock all premium questions for over 30% off

$10.42$7.08

08

:

04

:

56

:

37

Get this deal
Back to Dashboard

Dependency Chain End

Medium

You are given a list of task dependency pairs [a, b] meaning task a is blocked by task b (i.e., a must wait for b). Each task blocks at most one other task. Given a starting task, follow the chain until you reach a task that does not block anything else. Return that final task.


...