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

2014-11-24 01:25:56 · 作者: · 浏览: 8

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.