Redian新闻
>
求 H4 申请清单 和步骤。 网上详细的大部分是 2000年的。
avatar
求 H4 申请清单 和步骤。 网上详细的大部分是 2000年的。# Reunion - 探亲与陪读
f*4
1
* C VS C++
* new expression
-operator new, new_hanlder
* Polymorphism
-virtual function
-is this program compile right? run right?
class A{
public: virtual void foo(){}
};
class B:public A{};
int main(){
B b;
b.foo();
}
[我开始说2个都是right,他连问3次"Are you sure?";第三次问的时候,我改了说,compile right, run wrong。但是,后面越想越不对,我返回去说这道题目,2个都是right,很sure]
-how is virtual table is constructed
-running time, how can a call to find the right virtual function
-下面这个设计有啥不好
class A{
public: virtual void foo(){}
virtual void foo
avatar
z*o
2
RT
本人今年申请到了 H1B。 准备把国内的老婆接过来。
谢谢。
avatar
H*M
3
bless

【在 f****4 的大作中提到】
: * C VS C++
: * new expression
: -operator new, new_hanlder
: * Polymorphism
: -virtual function
: -is this program compile right? run right?
: class A{
: public: virtual void foo(){}
: };
: class B:public A{};

avatar
l*l
4
bless。。。。
avatar
s*r
5
bless

【在 f****4 的大作中提到】
: * C VS C++
: * new expression
: -operator new, new_hanlder
: * Polymorphism
: -virtual function
: -is this program compile right? run right?
: class A{
: public: virtual void foo(){}
: };
: class B:public A{};

avatar
t*n
6
bless
avatar
d*8
7
那个判断球的是不是取一次就可以了
要用到标签全是贴错的信息。
比如原来的Set是
本来 B R B&R
那么错误的排列标签只有两种组合
R B&R B
B&R B R
所以第一个球在标签为 B&R的地方取,取出来必然要么是R要么是B
取一个就可以判断是那种组合了,

【在 f****4 的大作中提到】
: * C VS C++
: * new expression
: -operator new, new_hanlder
: * Polymorphism
: -virtual function
: -is this program compile right? run right?
: class A{
: public: virtual void foo(){}
: };
: class B:public A{};

avatar
s*r
8
这个设计题, foo_0, foo_1,...,foo_100 你确定你答的是对的么? 我怎么感觉是谈
function overload的题
就算class B 不用到这些function, 设计的时候也要考虑到其他可能的用户需要用这些
function啊

【在 f****4 的大作中提到】
: * C VS C++
: * new expression
: -operator new, new_hanlder
: * Polymorphism
: -virtual function
: -is this program compile right? run right?
: class A{
: public: virtual void foo(){}
: };
: class B:public A{};

avatar
f*4
9
我知道你是啥意思了,在你理解中,这3个标签都贴错位置了
而我的理解是,这3个标签有错,也可能是全错
本来 B R B&R
那么全错误的排列标签只有两种组合
R B&R B
B&R B R
那么部分错误的排列标签组合
B B&R R
B&R R B
等等
靠,他没强调3个标签都贴错啊

【在 d*******8 的大作中提到】
: 那个判断球的是不是取一次就可以了
: 要用到标签全是贴错的信息。
: 比如原来的Set是
: 本来 B R B&R
: 那么错误的排列标签只有两种组合
: R B&R B
: B&R B R
: 所以第一个球在标签为 B&R的地方取,取出来必然要么是R要么是B
: 取一个就可以判断是那种组合了,

avatar
s*r
10
我记得这个题目的限制条件是全错

【在 f****4 的大作中提到】
: 我知道你是啥意思了,在你理解中,这3个标签都贴错位置了
: 而我的理解是,这3个标签有错,也可能是全错
: 本来 B R B&R
: 那么全错误的排列标签只有两种组合
: R B&R B
: B&R B R
: 那么部分错误的排列标签组合
: B B&R R
: B&R R B
: 等等

avatar
f*4
11
3哥哥没和我说全错,就说 labels attached to boxes incorrectly
avatar
d*8
12
肯定是全错的,不然你怎么判断B&R,即便取无数次都有小概率事件发生的。

【在 f****4 的大作中提到】
: 我知道你是啥意思了,在你理解中,这3个标签都贴错位置了
: 而我的理解是,这3个标签有错,也可能是全错
: 本来 B R B&R
: 那么全错误的排列标签只有两种组合
: R B&R B
: B&R B R
: 那么部分错误的排列标签组合
: B B&R R
: B&R R B
: 等等

avatar
i*r
13
bless
会有好消息的
avatar
f*4
14
所以在2分钟里面,我没答出来啊

【在 d*******8 的大作中提到】
: 肯定是全错的,不然你怎么判断B&R,即便取无数次都有小概率事件发生的。
avatar
d*8
15
呵呵,阿三很坏,不过你说3次的时候,他说太多了,那肯定是全错的Case,
如果不是全错的,3次都不够,比如 R和R&B调换的Case, 次数不可判断的呀

【在 f****4 的大作中提到】
: 所以在2分钟里面,我没答出来啊
avatar
f*4
16
不去管了,我给hr发了信,让他帮忙forword给面我的人
希望argue一下,能有帮助吧
顺便,大家都在哪看的braintest啊?
avatar
w*1
17
这是什么面试啊, 不考编程, 考脑筋急转弯?还就给2分钟时间?
是INERN? ENTRY LEVEL?
avatar
f*4
18
ENTRY LEVEL
他后面可能还要面一个人,前面时间浪费了,所有就剩下2分钟了
avatar
w*1
19
楼主不要太担心。
这个不是你的问题, 是他的时间控制问题。
avatar
d*f
20
你没看过费马的房间?

【在 f****4 的大作中提到】
: * C VS C++
: * new expression
: -operator new, new_hanlder
: * Polymorphism
: -virtual function
: -is this program compile right? run right?
: class A{
: public: virtual void foo(){}
: };
: class B:public A{};

avatar
l*e
21
阿三心肠太坏!故意不把题目说清楚。
avatar
e*s
22
你应该反问他,把条件搞清楚

【在 f****4 的大作中提到】
: 所以在2分钟里面,我没答出来啊
avatar
j*9
23
请问最开始那些题是简答题吗?比如第一个是让你说说c和c++的区别?要说一小段那种
avatar
l*e
24
for brain test - one time:
assuming all labels are mislabeled, check for mixed label first whatever
color the ball you get should be labeled as it is. For example, if you get
RED then the box should contain all red balls due to the condition that
MIXED box does not contain mixed balls. then it is easy to tell the other
two.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。