网易2018校招游戏客户端开发工程师笔试卷
时长:120分钟 总分:100分
134浏览 0人已完成答题
题型介绍
题型 | 单选题 | 填空题 |
---|---|---|
数量 | 20 | 3 |
以下代码的输出和x函数被调用的次数分别是?
int x (int n) { if (n <= 3) return 1 else return x (n - 2) + x (n - 4) + 1 } int main (void) { printf ("%d\n", x (x (8))) return 0 }
已知shell脚本名称为test.sh, 现在想在脚本执行时先输出test...
shell脚本中,需求如下:如果 ls testfile 执行成功输出Tr...
有时候因为磁盘空间快满了,我们需要删除一些log文件,但是忘记停止程序了,...
对于SQL语句select * from t where a=100 an...
下面代码在32位计算机中输出的结果是( ) st...
struct TEST_TYPE { int a int b } int testSize(struct TEST_TYPE val[10]) { return sizeof(val) }
以下输出正确的是( ) class Base { public: voi...
以下输出正确的是( )
class Base { public: void virtual Func() { cout<<"Base"<<endl } } class Derived : public Base { public: void virtual Func() { cout<<"Derived "<<endl } } int main () { Base* pBase = new Base() pBase ->Func() Derived * pDerived = (Derived*)pBase pDerived->Func() delete pBase pDerived = new Derived() pBase = pDerived pBase->Func() delete pDerived return 0 }
操作序列
1、将a_i放入b序列的末尾
2、逆置b序列
小易需要你计算输出操作n次之后的b序列。
堆棋子
疯狂队列
下列代码的时间复杂度是多少
int func(int N) { int cnt = 0 for(int i=1i<=Ni++) for(int j=1j<=Nj+=i) cnt+=(i+j) return cnt }