注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
HRT校招tech talk给的链接,然后顺着链接申请了core dev。 HRT 一般招三类,没记错的话应该是叫algo design, algo dev, core dev
algo design应该是做数据分析建模啥的,algo dev把algo design设计的东西做成程序,core dev是整个交易系统infra + 其他
因为我数学不求行,所以申请的core dev,但是个人更感兴趣algo dev
时间太过久远OA的题已经忘了,只记得是2道,第二道稍微复杂一点的tree algorithm
一面会写得比较详细,二面简略一些,想知道二面代码部分的请直接找分割线。
OA过后第二周就发了一轮电面邀请,45分钟不考代码,问答过程比较长,我把问题用红色标出来。
1. inline function:
Q: Do you know what inline functions are
A: yes, for any function declared as inline, their reference or invoke will be replaced to it's function body or the implementation at compile time.
Q: what are some benefits of using inline functions
A: it reduces the overheads when functions are invoked.
Q: can you give me some detailed examples of overheads?
A: How detailed you want it?
Q: To the best you can
A: (然后我描述了一下ARM 920系列单片机上function call 和return时会用到的一些instructions)
The overheads here basically comes from ldm and stm instructions, where memory read and write occurs.
(然后坦白了我并不清楚单核非单片机会怎么样,不太清楚virtual memory具体什么时候写入disk,不太清楚它是并行的还是会block住前台的程序)
Q: What are some disadvantages of using inline funcitons?
A: emm...... haven't thought about it. Larger binary file size? Repetitive instructions if an inlined function are called multiple times?
Q: what else? think about caching, latency, etc.
A: I can't think of an example from caching perspective. I mean if we are talking about cache, then I guess we are talking about accessing some sort of data, but inline functions don't neccearily do memory operations right? I can simply make an inline function with pure ALU operations.
Q: Yes you're correct, however apart from data cache, we also have instruction cache. If you have a huge binary with repetitive sequence of instructions....
A: Ah I see, we are wasting instruction caches here......
2. 2 way queue
Q: what's a queue?
线-------------------------------------------------------------------------------
第三周发了第二轮电面邀请,1小时写代码,二面气氛很奇怪,面试官似乎很没耐心。
第一题,2 sum, 老生常谈,没啥问题就过了。
第二题, implement c function, itoa,没有给特别明确的需求,我就写了个只支持base 10 的itoa,面试官也没管就直接问我有啥问题
总共就写了半个小时。
我就问了同样的问题:你们组具体干嘛的,你觉得啥样candidate合适?
对面:My team mainly implements eveything between HRT and the market.
我:emmm it's a bit hard to picture how is it like, if you're allowed to tell me more details I'd love to know! But please tell me if you're not allowed to say anything, I totally understand and respect that.
面试官很不耐烦地:My team mainly implements eveything between HRT and the market. That's it, I don't know what you're expecting.
我:I'd imagine that's something about lowlatency soket programming? Am I on the right track?
面试官依旧复读机状:My team mainly implements eveything between HRT and the market. If you don't have any other questions we'll end the interview right now, thank you for your time.
我???好的吧?
二面后已经一周了,还没消息,我估计是凉了,希望以上内容帮助到大家,HRT钱还是不少的。
|