New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Robinhood
Coding Question
AI Insights
Quick Summary
Reconstruct a linear prerequisite chain from unordered edge pairs.
Identify the starting course by finding the node with no incoming dependencies.
Traverse the reconstructed path to return the exact middle course.
What This Tests
Graph representation using hash maps
Set operations for node degree analysis
Linear path traversal and indexing
Directed acyclic graph structure recognition
Common Patterns
Graph Traversal
Hashing
Path Reconstruction
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected