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 | |
V*********e 发帖数: 737 | 8 No
【在 a***f 的大作中提到】 : 时间、空间复杂度有要求吗?
|
I*********g 发帖数: 93 | |