注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
有没有大神谈谈思路? Given a data file containing hotel deals, write an app to find the best applicable deal for the user and return the promo_txt for the deal. You will need to consider the type of deal, valid dates, hotel name, and edge cases. If no deal applies you will return “no deals available”. You may assume the entire deals file fits in memory. You may use Java, C++, C#, or Python for your solution with the standard libraries at your disposal. The types of deals are as follows: rebate : a stra v> > $50 off your stay 3 nights or more > BestHotelDeal ./deals.csv "Hotel ABC" 2014-06-30 1 > 5% off your stay > BestHotelDeal ./deals.csv "Hotel ABC" 2014-06-30 2 > no deal available
|