由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - M家intern interview都会面什么?
相关主题
Finding deepest node of BST ?分别用LinkedList和HashMap构建字典树(Compact Trie)怎么做
MS onsite 面经leetcode 一题
Link nodes at same level in a binary tree 怎么做?Depth-First-Search
Tree Question: Longest path from root to a leafGoogle Intern 面试 【请教】
讨论一道L的validate binary tree和求深度的问题bloomberg onsite & offer
Print a binary tree in level order but starting from leaf node up to root一道面试题
请教大家一个问题:Maximum Height (Depth) of a Binary Tree Using PreOrder Traversal一个GOOG的二叉树面试题
请教大家一个问题:Maximum Height (Depth) of a Binary Tree Using PreOrder Traversal请教一个二叉树镜像问题
相关话题的讨论汇总
话题: node话题: intern话题: maxdepth话题: interview话题: list
进入JobHunting版参与讨论
1 (共1页)
s***n
发帖数: 373
1
phone interview.
投的Software Development Intern
coordinator说要prepare to respond to behavioral questions.
会有什么behavioral问题呢?
p*****i
发帖数: 197
2
上次来我学校听同学说好像就两道coding 题:
1. find the depth of a tree
2. check whether a linked list is circular or not.
n**4
发帖数: 719
3
just a little practice
1) find the depth of a tree
struct node {
int val;
node * firstChild;
node * nextSibling;
}
int depth(node * tree) {
int maxDepth=0;
node * p;
if (tree==NULL) return 0;
p = tree->firstChild;
while (p) {
maxDepth = max(depth(p),maxDepth);
p=p->nextSibling;
}
return maxDepth;
}
// time complexity: O(N) N the node number of the tree
// space complexity: O(1)
2) check whether a linked list is circular or not.
struct node {
int val;
node * next;
}
bool detectCircular(node * list) {
node * p1=list, * p2=list;
if (!list || !list->next) return false;
while (p2->next) {
p1=p1->next;
p2=p2->next->next;
if (p1==p2) return true;
}
return false;
}
m*****y
发帖数: 93
4
why ms
which product of ms do you like? why?
what's your biggest challenge
how to test a keyboard

【在 s***n 的大作中提到】
: phone interview.
: 投的Software Development Intern
: coordinator说要prepare to respond to behavioral questions.
: 会有什么behavioral问题呢?
:

1 (共1页)
进入JobHunting版参与讨论
相关主题
请教一个二叉树镜像问题讨论一道L的validate binary tree和求深度的问题
amazon tel interviewPrint a binary tree in level order but starting from leaf node up to root
Amazon coding question请教大家一个问题:Maximum Height (Depth) of a Binary Tree Using PreOrder Traversal
请教一道面试题请教大家一个问题:Maximum Height (Depth) of a Binary Tree Using PreOrder Traversal
Finding deepest node of BST ?分别用LinkedList和HashMap构建字典树(Compact Trie)怎么做
MS onsite 面经leetcode 一题
Link nodes at same level in a binary tree 怎么做?Depth-First-Search
Tree Question: Longest path from root to a leafGoogle Intern 面试 【请教】
相关话题的讨论汇总
话题: node话题: intern话题: maxdepth话题: interview话题: list