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
Anthropic
Coding Question
AI Insights
Quick Summary
Design a distributed algorithm to compute the global mode across k independent workers.
Minimize network bandwidth by aggregating local frequencies before any communication occurs.
Route data deterministically to prevent bottlenecks while correctly handling tie-breaking rules.
What This Tests
Distributed Systems Architecture
Hashing & Data Partitioning
Message Passing & Synchronization
Network-I/O Optimization
Frequency Analysis
Common Patterns
Hashing
Divide and Conquer
Collapse
Hint 1
Hint 2
Hint 3
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
Stdout
-