This website requires Javascript to function properly. Please go to the setting of your web browser and enable Javascript for this website.
×
Loading...
Close
Home
Share
有道面试题, 愁死我啦: Write the Fibonacci series algorithm in a programming language of your choice with TDD, 有熟悉的高手吗?
outlink
(outlink)
(#10327839@0)
Last Updated: 2016-9-29
This post has been archived. It cannot be replied.
Share
Share Online by QR Code
Report
Replies, comments and Discussions:
工作学习
/
学科技术
/
有道面试题, 愁死我啦: Write the Fibonacci series algorithm in a programming language of your choice with TDD, 有熟悉的高手吗?
-
outlink
(outlink);
2016-9-29
(#10327839@0)
一个用c#写,一个用java写,然后比较结果。
-
zhaoyun
(长衫赵子龙);
2016-9-29
(#10327859@0)
多谢。就是不明白,为啥要跟TDD 扯到一起啊?
-
outlink
(outlink);
2016-10-2
(#10332522@0)
这个放下狗好了
-
sxffff
(lookingforjob);
2016-9-29
(#10327876@0)
+1
多谢。就是不明白,为啥要跟TDD 扯到一起啊?
-
outlink
(outlink);
2016-10-2
(#10332524@0)
unit test is just a way of runnable, 你问一下自己,你写一个这样的东西,你怎么知道你写的东西是对的?
-
sowen
(昂居居);
2016-10-2
(#10332539@0)
+1
如果就是unit test, 那我就明白了。 TDD这个词太高大上了。哈哈
-
outlink
(outlink);
2016-10-3
(#10332917@0)
啥叫TDD?
-
binghongcha76
(一只大猫);
2017-1-10
(#10538164@0)
他弟弟?
-
galactica
(晋窑窑主);
2017-1-10
(#10538252@0)
嗯,直接翻译就是 写一个斐波那契额数列和面试官他弟弟?
-
binghongcha76
(一只大猫);
2017-1-10
(#10538362@0)
Test-driven development
-
guestagain
(guest again);
2017-1-10
(#10538372@0)
用这个甩他一脸
-
wxlin2k
(wxlin2k);
2017-1-13
{98}
(#10546190@0)
正文:fibs = 0 : 1 : zipWith (+) fibs (tail fibs)
测试:quickCheck (fibs :: Int -> Int)
写完。
你这个测试没有期望的输入和输出,直接就pass了。
-
sxffff
(lookingforjob);
2017-1-13
(#10547075@0)
马上fail掉。Driven跑哪去了?
-
galactica
(晋窑窑主);
2017-1-13
(#10547103@0)
再画一个方向盘。
-
meanstack
(Mean Stack);
2018-5-28
(#11551189@0)
Haskell 的 Hello World。有加公司在用Haskell吗?
-
hashicorp1
(Consul);
2017-1-15
(#10550905@0)
美帝都少见,何况加村。
-
wxlin2k
(wxlin2k);
2017-1-17
(#10554265@0)
感觉TDD有点过时。15年换工作时面试了3家都被问是否了解BDD,没有提到TDD。
-
apache_tomcat
(小明);
2017-4-26
(#10762500@0)
没理解,就让你写个F过程?一般能写成普通解的就不要用递归。
-
zhengy4
(zhengy4);
2018-5-28
(#11550958@0)
More Topics
Grok
OpenAI 前員工自創公司推世上最強AI?GPT-4、Claude3、Gemini pro 1.5 三強鼎立,到底哪個最好用?ft.泛科學院【思想實驗室】
We cannot solve our problems with the same thinking we used when we created them (Albert Einstein).
不懂就问: 为何 Python 和一些语言, 把字符串的 index 设计的这么麻烦难用? 比如 ABCDE, index is 01234 from left or -5-4-3-2-1 from right? 这样做的好处是什么? 还有 left inclusive but right exclusive… 真复杂啊
求建议:一个小型数控机床,
枫下论坛主坛
/
工作学习
/
学科技术