由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 问两道以前的Bloomberg题
相关主题
Two C++ questions from Bloomberg on-siteBloomberg面试题 兼问在纽约工作舒服吗?
为什么C++的constructor出错可以抛出异常,而destructor出错a small question about c++ object allocation
问几道老题Char x[] = "abc"; 是在heap还是stack上? (转载)
A problem about Heap and Stack.请教个C++编程思路
问个C++题A malloc/free question using C/C++
bloomberg onsite在子函数内开内存,返回主函数指针然后释放空间是不是很糟糕的(转载)
Bloomberg面经+个人找工作小感topercode DP问题求解
bloomberg 电面请教一道题
相关话题的讨论汇总
话题: exception话题: block话题: bloomberg话题: memory话题: 两道
进入JobHunting版参与讨论
1 (共1页)
h*****g
发帖数: 312
1
1. In which cases can the destructor of a class not be called?
2. In a try block, we allocate some memory ; then an exception is thrown.
How can we get the allocated memory released before we jump to catch block
to process the exception?
b******n
发帖数: 4509
2
1. 2 is the answer of 1
2. use smart pointer

【在 h*****g 的大作中提到】
: 1. In which cases can the destructor of a class not be called?
: 2. In a try block, we allocate some memory ; then an exception is thrown.
: How can we get the allocated memory released before we jump to catch block
: to process the exception?

g*********s
发帖数: 1782
3
这些题很烂。让人摸不着头脑,不知道提问方的意图是啥。
金融公司很喜欢考这类题目。

【在 b******n 的大作中提到】
: 1. 2 is the answer of 1
: 2. use smart pointer

1 (共1页)
进入JobHunting版参与讨论
相关主题
请教一道题问个C++题
明天要面 facebook 的 PhD team allocation interview, 求知情人指导bloomberg onsite
问道G题(2)Bloomberg面经+个人找工作小感
定义一个数组, 巨简单的一个问题bloomberg 电面
Two C++ questions from Bloomberg on-siteBloomberg面试题 兼问在纽约工作舒服吗?
为什么C++的constructor出错可以抛出异常,而destructor出错a small question about c++ object allocation
问几道老题Char x[] = "abc"; 是在heap还是stack上? (转载)
A problem about Heap and Stack.请教个C++编程思路
相关话题的讨论汇总
话题: exception话题: block话题: bloomberg话题: memory话题: 两道