C++英文面试题 面试外企的朋友可以参考一下

匿名网友 匿名网友 发布于: 2015-08-30 00:00:00
阅读 378 收藏 0 点赞 0 评论 0

1. Explain what does #define do.

2. Please describe the ‘diamond problem’ with regards to multiple inheritance in object oriented programming.

3. Difference between Vector and List?

4. Given the root of a binary search tree, link all the nodes at the same level, by using an additional Node* level.

5. How do you find the max depth of a binary tree?

6. What is the difference between overriding and overloading?

7. If you had 5 red balls that contained 4 red balls and those red balls contained the original 5 red balls, then how many sets of sets of balls would I take to have a double set of red balls of varying sizes inside each next largest red ball?

8. Integer shift right-left, what happens by shifting to more than the integer bit size, etc.

评论列表
文章目录