Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Years of fibs, finally paid off!

Name: Anonymous 2015-05-08 16:25

For years I've been implementing fibonacci function in various ways. Recrusive. Iterative. Even logic programming.

But now it will get me a job!

https://blog.svpino.com/2015/05/07/five-programming-problems-every-software-engineer-should-be-able-to-solve-in-less-than-1-hour

Check out the third one. Now I just maybe practice the 4 other and I can get any job. Though my fibs skills are so impressive, so that's probably enough alone.

Oh and... CHECK OUT MY FIBS!

Name: Anonymous 2015-05-09 16:28

>>6
function fibonacciFactory(n) {
function fibonacci(x, y) {
if(fibs.push(x) == n) return;
fibonacci(y, x+y);
}

var fibs = [];
fibonacci(0, 1);
return fibs;
}

fibonacciFactory(100).forEach(function(fib) { console.log(fib) });

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List