Tagged Questions
5
votes
1answer
225 views
Project Euler question 2 in CoffeeScript
By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
fib = (x) ->
return 0 if x == 0
return 1 if x == 1
...
5
votes
4answers
535 views
Improving my solution to Project Euler problem #1?
I'm trying to compare my own implementation with another solution of ProjectEuler problem #1, which uses a list comprehension:
module Progression1 (sumProgressions) where
import Prelude
...
12
votes
4answers
918 views
Project Euler Problem 2 in Clojure
I am in the process of learning Clojure. I am fairly new to functional programming and would like to know if my code smells or if there are any performance implications with my approach.
; Returns ...