注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
本帖最后由 匿名 于 2022-11-21 22:29 编辑
- 1 first question:
- You are building a global trading platform. Your clients submit limit orders with a given time-to-live to a selection of banks, each of which has different trading hours. You want to ensure that at least one of the selected banks is available to fill the order at any given time.
- Design a function to test if the selected banks' collective trading hours cover the entire duration of the order without any gaps.
- bool canITradeNow(XXX)??
- 09:00-16:00 Royal Bank of Scotland
- 11:00-17:00 Morgan Stanley
- 14:00-20:00 JP Morgan
- 02:00-07:00 National Australia Bank
- 15 - 16
复制代码
补充内容 (2022-11-22 14:30 +8:00):
2 second question:
Let's suppose Bloomberg is sponsoring a coding competition at its New York and S 1400
With only 4 participants, 2 must fly to SF and 2 must fly to NY
// [200, 500, 600 700]
// [300, 400, 600, 900]
// output: 1800 |