本文介绍了挑战:一线上最短的Fibonacci序列算法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 挑战是用任何编程语言创建最短的算法。 规则: 1.所有代码必须在一行上。 2.不允许使用防止这种情况的语言。 I.E大会,当然还有COBOL。所有其他语言都是公平的游戏。 3.序列必须达到至少 4181. 如果我错过了应该是的语言不允许请告诉我... 我的解决方案是Java。称重为@ 108字符没有空格。 展开 | 选择 | Wrap | 行号 解决方案 The challenge is to create the shortest algorithim, In any programming language.RULES:1. All code must be on one line.2. Languages that prevent this are disallowed. I.E Assembly, and of course COBOL. All other languages are fair game.3. Sequence must go up to at least 4181.If i missed a languge that should be disallowed please let me know...My solution is in Java. weighing in @ 108 Characters w/o spaces. Expand|Select|Wrap|Line Numbers 解决方案 这篇关于挑战:一线上最短的Fibonacci序列算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
05-25 23:38