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
Point72
Coding Question
AI Insights
Quick Summary
Simulate an IPO auction allocating shares to the highest bidders first.
Break ties using timestamps and distribute equally priced bids via round-robin.
Track and return the final share allocation for each unique investor.
What This Tests
Data sorting and stable ordering
Simulation and state management
Group-based resource distribution
Efficient algorithmic optimization
Common Patterns
Sorting
Greedy
Hashing
Collapse
Hint 1
Hint 2
Hint 3
What Interviewers May Ask Next
Accepted
1.2k
/3.2k
Acceptance Rate
37.6%
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
bids =
totalShares =
Output
Expected