Coinbase | Phone | Buy and sell offer

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2022-01-27Added By Anonymous
Source: Link

Exactly the same as: https://leetcode.com/discuss/interview-question/1198505/Coinbase-or-Onsite-or-SWE-Reject


A way for users to buy and sell stocks

match buyers with the lowest seler (<= buyer's price)

match sellers with the highest buyer (>= seller's price)


But instead stocks, just books

Comments