注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
x
本帖最后由 匿名 于 2024-5-10 10:20 编辑
1. You have to implement 4 APIs, to place orders
- Put(unique_id, quantity) -> put the order in a sequence
- Delete(unique_id, quantity) -> delete an existing order
- Modify(unique_id, quantity) -> change the quantity of an existing order
- Query(unique_id) -> this should return the total number of orders before this unique ID, and the total quantity before this unique id
e.g. Put(1, 1), Put(2, 2), Put(3您好! 本帖隐藏的内容需要积分高于 188 才可浏览 您当前积分为 0。 使用VIP即刻解锁阅读权限或查看其他获取积分的方式 游客,您好! 本帖隐藏的内容需要积分高于 188 才可浏览 您当前积分为 0。 VIP即刻解锁阅读权限 或 查看其他获取积分的方式 random string.
2. How do you implement a user space memory management pool to allocate and deallocate elements of the same size? |