注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
刚做了Citrix OA, 职位是HDX Dev entry level. 楼楼来扩充下地里Citrix的OA。
总共16题,15个选择,1个coding,限时30Min. 用C或者C++,并且只能全屏做, 切出去都会有记录。
1#. int* p = new int[10], 问如何free the memory allocated here.(我选了delete[] p)
2#. what is a proper method of opening a file for writing as binary file?
3#. 2d array A[4][2] = 0, 问print("%d", sizeof(A))是多少,assume g++ compiler
4#. char *x, *y, x = "hello", y = x+ 3, 问print("y = %s \n", y)是多少
5#. class classA {
public: int x;
public:
classA(int xx) : x(xx) { }
classA(const classA& a) {x = a.x; x++;}
void operator = (const classA& a1) {x = a1.x; x--;}
};
int main()
{
classA a(4);
classA b = a;
software? (Yes or No)
16# 是个coding题: The bit game
给定两个正整数 l 和 r, find 两个正整数 a 和 b(l <= a < b <=r), 满足:
the value of a (XOR) b is both maximal and 小于等于 k)
XOR是位运算里的异或
要求完成这么个function:
int maxXor(int l, int r, int k) {
}
输入l,r,k,return the maximum possible value of a(XOR)b, 并且满足上面所说的条件
说白了就是 在一个给定区间内,找两个正整数,使他们的异或值最大,并且小约定于k。
anyway, 跪了。。。。 希望对大家有帮助
|