Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A common warm up question in a coding interview is to write (on the whiteboard) a program that prints the Fibonacci numbers in sequence. Arguably, you can write this fraction and claim this answers the question, though I don't know any programming language where this would actually work without a bunch of more code around it.

Edit: other comments have examples in Python, Clojure and bc.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: