注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
optiver的OA有三个部分, 这里分享一个第一部分coding真题, 我的了我一个朋友也投了, 遇到的好像是地里有人分享过的热气球的题
Question 1
As the provider of a news aggregation service, you aim to provide your customers with a system that is as easy to use as possible. There are many different news providers, and it is tedious for users to subscribe to all of them manually, so you want to provide a single subscription that manages all the news providers for each customer.
Each subscriber is only interested in a certain set of topics, and should only receive news about those topics. Each news item has an interest score and each subscriber nominates their minimum interest score. A subscriber should not be sent news that has a score lower than the subscriber’s minimum.
The system may have to handle a lot of data and subscriptions, so it must be robust and not overload subscribers with too much data. We then choose to decouple the news input feed from the output towards the subscribers, giving more control to the system.
Problem Statalid to the millisecond precision.
Guaranteed input constraints:- is ever increasing for calls of this function.
Input constraints:
Input Format for Custom Testing
Each line of input begins with a keyword followed by one or more parameters separated by whitespace, per the order described above. The keywords are:- , which indicates a call to.
- , which indicates a call to.
- , which indicates a call to.
- , which indicates a call to.
求加米 |