70分钟两道题
第一题IPO
从leetcode搬运的题目:
Question1
Something related to IPO offering
main gist is we had shares - lets say N which we want to divide among bidders
Bidders are represented in 2d arrays as
[bidder_id, no of shares_bid, price, timestamp]
Now build a function returns the bidder_id's in sorted array that did not receive any shares.
Shares arwise subtract from N
Iterate over rest of array to find bidders that did not receive any shares.
Sort the array of bidders with no shares and return that array
第二matrix summatio
|