由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 最新的MS面试题 (转载)
相关主题
How to send a structure containing a pointer over socket? how to do it ?=======Problem – coding in c++
C++ 科学计算中的常量a question
要不要学JAVAJava代码,老是compile出错,大家帮我看看哪错了。。。
烤树题。c++ interview question
面题:copy directed graph这个function pointer最后的那个int是什么意思?
Re: 问个cisco的mutex的面试题一道面试题
请教一个有向图的算法问一个关于C++指针的问题
difference between: char** p and char*p[] ??[合集] 两道面试题
相关话题的讨论汇总
话题: node话题: structure话题: copy话题: ms话题: method
进入Programming版参与讨论
1 (共1页)
V*********e
发帖数: 737
1
【 以下文字转载自 JobHunting 讨论区 】
发信人: VirtualLife (Who AM I), 信区: JobHunting
标 题: 最新的MS面试题
发信站: BBS 未名空间站 (Tue Sep 18 11:41:43 2007)
Coding Exercise:
Write a method that takes a pointer to a Node structure as a parameter. The
Node structure contains two pointers to other Node structures. The function
should return a complete copy of the passed-in data structure.
For example, the method signature could look like so:
Node* Copy(Node* root);
Note:
· Do not make any assumptions about the data str
X****r
发帖数: 3557
2
嗯,这道题不错,难度适中,要不是已经在这里公布了的话我就要拿去作面试题了:)

The
function

【在 V*********e 的大作中提到】
: 【 以下文字转载自 JobHunting 讨论区 】
: 发信人: VirtualLife (Who AM I), 信区: JobHunting
: 标 题: 最新的MS面试题
: 发信站: BBS 未名空间站 (Tue Sep 18 11:41:43 2007)
: Coding Exercise:
: Write a method that takes a pointer to a Node structure as a parameter. The
: Node structure contains two pointers to other Node structures. The function
: should return a complete copy of the passed-in data structure.
: For example, the method signature could look like so:
: Node* Copy(Node* root);

b*********n
发帖数: 1258
3
可以拿去考阿三
呵呵

【在 X****r 的大作中提到】
: 嗯,这道题不错,难度适中,要不是已经在这里公布了的话我就要拿去作面试题了:)
:
: The
: function

V*********e
发帖数: 737
4
先给个答案吧。

【在 X****r 的大作中提到】
: 嗯,这道题不错,难度适中,要不是已经在这里公布了的话我就要拿去作面试题了:)
:
: The
: function

s****u
发帖数: 118
5
招engineer的话找个有点逻辑的coding就够了吧,公布了也没有关系吧

【在 X****r 的大作中提到】
: 嗯,这道题不错,难度适中,要不是已经在这里公布了的话我就要拿去作面试题了:)
:
: The
: function

s****u
发帖数: 118
6
很trivial的遍历吧,加个判重detect环就可以了

先给个答案吧。

【在 V*********e 的大作中提到】
: 先给个答案吧。
a***f
发帖数: 45
7
时间、空间复杂度有要求吗?
V*********e
发帖数: 737
8
No

【在 a***f 的大作中提到】
: 时间、空间复杂度有要求吗?
I*********g
发帖数: 93
9
不就是有向图的遍历吗?
找出所有的节点和边
1 (共1页)
进入Programming版参与讨论
相关主题
[合集] 两道面试题面题:copy directed graph
求C/C++面试题Re: 问个cisco的mutex的面试题
an important update in clrs 3rd ed请教一个有向图的算法
请教两道linux面试题目difference between: char** p and char*p[] ??
How to send a structure containing a pointer over socket? how to do it ?=======Problem – coding in c++
C++ 科学计算中的常量a question
要不要学JAVAJava代码,老是compile出错,大家帮我看看哪错了。。。
烤树题。c++ interview question
相关话题的讨论汇总
话题: node话题: structure话题: copy话题: ms话题: method