IPO Share Allocation
IPO Share Allocation
A company has totalShares shares available for an IPO. You are given a list of bids, where each bid has the form:
(userId, shares, price, timestamp)
userId...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
