注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
x
一共三道题,感觉lt medium-hard难度
1. Trading Platform
A quantitative trading firm seeks tocreate a tool for querying the netprofit/loss of the firm at any given time.The tool processes a list of events, eachof which can be classified into one offour categories;
1. BUY stock quantity. Signifies thepurchase of <quantity> shares of stock<stock> at the market price.
2.SELL stock quantity. Indicates the sale of<quantity> shares of stock <stock> atthe market price.
3.CHANGE stock price: Signifies a changein the market price of <stock> by<prs and/or numbers with aminimum length of 8. Once a request isvalidated, the URL parameters must beparsed as a comma-separated string.
URL parameters are identified by theportion ofthe URL that comes afteraquestion mark (?). They consist ofa key The tool should return a list of numbers corresponding to each OUERY event |