您的位置:首页 > 其它

没用的程序设计题-美甲帮笔试题

2017-11-17 00:00 253 查看
package com.gulf.test;
/**
* 今天面试的一个递归程序题:
* 1 1 2 3 5 8 13 ...
* 求第30位是什么
* @author gulf
*
*/
public class DiGui {
public static void main(String[] args) {
System.out.println(new DiGui().getResult(30));
}

public int getResult(int x){
if(x == 1){
return x;
}
if(x == 2){
return x -1;
}
if(x > 2){
return getResult(x-1)+getResult(x-2);
}

return 0;
}

}

输出结果:832040

论一个IT管理者的素养:

最近在找工作页面试了一些公司,什么样的面试官都有遇到。

总体感觉:搞技术的很多对管理,心理认识,知识面都比较狭窄,情绪管理,表达力,涵养和包容度都有所欠缺。

这是中国大多数IT从业人员的一种现状,封闭,自负,以及自以为是。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: