New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Tesla
Coding Question
AI Insights
Quick Summary
Model chunk distribution as directed acyclic graphs where edges represent data transfers.
Calculate each vehicle's contribution by counting how many downstream transfers it enables for every chunk.
Aggregate scores across all chunks and return vehicles sorted by score then ID.
What This Tests
Graph construction from event logs
Bottom-up aggregation using topological order or post-order traversal
Handling multiple independent subgraphs efficiently
Sorting with custom comparators
Common Patterns
Graph Traversal
DFS/BFS
Sorting
Hashing
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