注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
今早刚面的TripAdvisor 电面,面试官在洛杉矶的office。
上来随便聊了下就开始做题。是一道给你一个locationId, 让你返回the best coupon。然后location 有父子关系。如果能在最低级找到coupon 就返回, 不然就继续往上找。后面follow-up coupon加上了一个priority,求返回最高priortionId; // -1 if no parent, location is hierarchy
String name;
}
PS. 最后给点吧。。没法看其他贴了。。
|