c++ developer
两轮电面c++
onsite:
笔试: 30 minute
careercup都有
有一个是
int fun(int **p);
a[3][3];
fun(a);
what's the problem
上机编程3题:2-3 hour
1. Implement a binary tree. Insert following strings in the tree.
"Acura" "Aston Martin" " Bentley" "BMW"..."Ford" "Ferrari".
Search for "Cadillac" in the tree.
2. Implement code to evaluate string "5+4*5-8-9+6*5-6/3+2"
3. Write quick sort method for sorting integers.
Then Talk with several persons:
Most problems come from careercup.
Here are remembered questions.
1. implement strtok. What's its problem?
Make it safe for calling with multiple string.
[Move the static internal variable to a parameter]
2. several normal brainteasers:
like burn string,
two dice with number 0 to 9
to make calendar day from 00 to 31.
3. difference between structure and class
difference between structure and union.