注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
本帖最后由 匿名 于 2022-10-11 17:08 编辑
这个是第一面,面的是prediction team,简单聊天之后主要问一些Python的基础知识,包括解释型语言和编译型语言有什么区别;什么是dynamic type & static type,各有什么好处;什么是GIL;什么是Thread;什么是polymorphism;Python里面为什么不需要malloc申请空间,Python怎样决定什么时候free space。接下来就是他家经典的航班机票题,地里面有很多帖子提到过,用factory pattern。面试官非常nice, 不过面试时间卡的非常紧,60分钟不多不少需要注意时间。这道航班题题目还很长,最好能在准备面试的时候读过一遍。我再贴一下题目核心内容:
You're building a tool to estimate the cost of various airplane tickets based on the airline, distance and seating class. Your tool (60.0 * (0.50 + 0.25) + 50)
1000.00 (1000.0 * 1.00)
125.00 (100 <= 2 * (50 + 50 * 0.25))
-------------------------------------------
'''
test_input = [
"United 150.0 Premium",
"Delta 60.0 Business",
"Southwest 1000.0 Economy",
"LuigiAir 50.0 Business"
]
第一次发帖,求加米~ |