MS onsite 面经# JobHunting - 待字闺中
l*y
1 楼
面的是business platform division 的SQL Server team。我简历上一个DB的keyword
都没有,我连DB的课都没上过,不
知道他们怎么选的。尽管这样,题目全是基本的算法和coding,没有考DB的任何问题。
可惜我还是表现很差,感觉脑子进
水了(或者是进seattle的雨了)。面试从12:30开始(本来说是10点,临时改了,说
是他们上午有会),见了4个人。3
个是印度人,还有一个不知道是什么国籍的。
我就把所有technical的题罗列下来吧。很多都是常见题。
给一个array of integers, 需要多少个comparison能找到min? how about min and
max? what's the best worst-
case? (3n/2)
怎么merge两个sorted的array,n 个呢?
给一个tree,把同层的nodes都连起来,assume每个node都有个指针,你要让它指向下
一个同层的node。
count 1's in an integer.
mergeSort, mergeSort without recursion, why nlogn?
Find whether one string is a subset of another string (not need to be
contiguous, but order should match).
Print the nodes on the exterior of a binary tree in a anti-clockwise order,
i.e., nodes on left edge, then leaf
nodes, then nodes on right edge.
Find two integers in an array that sum to a target integer.
题目给的都很明确,不需要怎么clarify。
才想起还没发thank you letter。interviewer的名字都不记得了,也没要contact,唉
。
都没有,我连DB的课都没上过,不
知道他们怎么选的。尽管这样,题目全是基本的算法和coding,没有考DB的任何问题。
可惜我还是表现很差,感觉脑子进
水了(或者是进seattle的雨了)。面试从12:30开始(本来说是10点,临时改了,说
是他们上午有会),见了4个人。3
个是印度人,还有一个不知道是什么国籍的。
我就把所有technical的题罗列下来吧。很多都是常见题。
给一个array of integers, 需要多少个comparison能找到min? how about min and
max? what's the best worst-
case? (3n/2)
怎么merge两个sorted的array,n 个呢?
给一个tree,把同层的nodes都连起来,assume每个node都有个指针,你要让它指向下
一个同层的node。
count 1's in an integer.
mergeSort, mergeSort without recursion, why nlogn?
Find whether one string is a subset of another string (not need to be
contiguous, but order should match).
Print the nodes on the exterior of a binary tree in a anti-clockwise order,
i.e., nodes on left edge, then leaf
nodes, then nodes on right edge.
Find two integers in an array that sum to a target integer.
题目给的都很明确,不需要怎么clarify。
才想起还没发thank you letter。interviewer的名字都不记得了,也没要contact,唉
。