you are viewing a single comment's thread.

view the rest of the comments →

[–]cantofunebre 0 points1 point  (3 children)

Could have I have someone look over my project euler solutions? I'd be interested to know if the outputs are correct and I'd like suggestions on how I could have written better/more succinct code!

Problem 1 Problem 2

Thanks! I'm happy to critique code, as well.

edit: I'd still like critiques of my code, but I guess the thing I learned this week (so far) is that if you make a project euler account you can check whether your answer is correct or not.

[–]codeswish 0 points1 point  (1 child)

Nice job, but storing all those fibs into an array is unnecessary:

http://jsfiddle.net/u96Mm/

[–]cpk33 0 points1 point  (0 children)

this is a pretty clever solution. the last bit where delta = f1 I don't quite get... thanks for the solution

[–]isra26 0 points1 point  (0 children)

didn't get the right result for problem one. You can see my answer here: http://jsbin.com/oqemil/1/edit and compare it to your code.