申请博后奖学金的问题# Biology - 生物学
s*x
1 楼
1)OO 设计题,简单化的21点,两个 player, A 算一点或 11 点。
搞砸了,focus too much on class design instead of computation.
2) google search hint problem, how to store.
not sure the standard answer, 不过可能偶算可以。
3) key/value pair + LRU caching problem, 问什么样的数据结构。
偶给了hash+double linked list, 然后人家问多线程怎么办,就傻眼了。
4) c++ question,
Foo *p = (Foo *)malloc(sizeof(Foo));
p->Foo();
can you do things like this? he insists it is correct, I said you have to use placement new. :(
搞砸了,focus too much on class design instead of computation.
2) google search hint problem, how to store.
not sure the standard answer, 不过可能偶算可以。
3) key/value pair + LRU caching problem, 问什么样的数据结构。
偶给了hash+double linked list, 然后人家问多线程怎么办,就傻眼了。
4) c++ question,
Foo *p = (Foo *)malloc(sizeof(Foo));
p->Foo();
can you do things like this? he insists it is correct, I said you have to use placement new. :(