Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
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.
...
Asked at:Yelp
More Yelp interview questions
- Jaccard Word Similarityeasy
- Overlap String Joinmedium
- Top K Active Customersmedium
- Top K Keyword Productsmedium
- Phrase Tokenizerhard
- Product Search Enginemedium
- Traffic Spike Countermedium
- Conference Buddy Pairinghard
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.