毕业论文 校园活动 入党 考试

留学 励志 校园爱情 大学 高考

实习实践 简历大全 就业指导

职业规划 自荐 面试 应聘 鉴定

电脑学习 网店 销售 电话营销

市场营销 电子商务 成功创业

总结 报告 计划 体会 方案 党团

材料 发言 行政 合同 礼仪 演讲

热点专题: 大学专业介绍 高校网址 人生格言 人生感悟 留学签证 世界名校 公务员考试 计算机四级考试 考研试题 自学考试 大学英语四级考试 大学英语六级考试 职业规划 校园活动策划 社团活动策划 教育论文 管理论文 大学生入党 求职信 应聘信 自我评价 团日活动 社团活动总结 实习报告 实习周记 大学实习 社会实践 暑假社会实践
搜大学资料:
搜营销资料:
全站搜索:
当前位置:大学生无虑网大学生专栏求职就业指导面试技巧广东北电面试题» 正文

广东北电面试题

[10-15 19:48:03]   来源:http://www.dxs56.com  面试技巧   阅读:8377
概要:}Ansewr:Y,当i=0时可结束递归static int f(int i){ if(i==0){return 1;} else {return f(i-1)*f(i-2);}}Ansewr:N,因为i=1时,f(i-2)=f(-1),进入一个无限递归中b. There are two errors in the following JAVA program:static void g(int i){ if(i==1){return;} if(i%2==0){g(i/2);return;} else {g(3*i);return;}}please correct them to make sure we can get the printed-out result as below:3 10 5 16 8 4 2 1答:在第一个if语句前加System.out.print(i+" "); 本文章更多内容:1 - - - - - - - - - - - - 上一页 [1] [2]
广东北电面试题,标签:公务员面试技巧,面试的技巧,http://www.dxs56.com
}
 
Ansewr:Y,当i=0时可结束递归
static int f(int i){
   if(i==0){return 1;}
   else {return f(i-1)*f(i-2);}
}
Ansewr:N,因为i=1时,f(i-2)=f(-1),进入一个无限递归中

b. There are two errors in the following JAVA program:
static void g(int i){
   if(i==1){return;}
   if(i%2==0){g(i/2);return;}
   else {g(3*i);return;}
}
please correct them to make sure we can get the printed-out result as below:
3 10 5 16 8 4 2 1
答:在第一个if语句前加 System.out.print(i+" ");

本文章更多内容1 - - - - - - - - - - - -

上一页  [1] [2] 


Tag:面试技巧公务员面试技巧,面试的技巧求职就业指导 - 面试技巧

《广东北电面试题》相关文章: