0
votes
1answer
28 views

Project Euler problem 31 - tail recursive algorithm [on hold]

In Scala, a recursive algorithm for project Euler problem 31 is the following: ...
3
votes
2answers
77 views

Timing Project Euler Problem 1

Is there a better way to time the functions and print the result and function name dynamically? ...
1
vote
1answer
160 views

Better way of calculating Project Euler #2 (Fibonacci sequence)

Even Fibonacci numbers Problem 2 Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, ...
6
votes
2answers
175 views

Solving Project Euler problem #48 in Scala

I'm trying to learn some Scala and decided to try to tackle some Project Euler problems. For problem #48, coming from a Python background, my solution is the following one-liner: ...
3
votes
3answers
419 views

Alien Numbers - how Scala-ish is my solution?

I'm trying to solve an old GCJ. It's a very simple puzzle, but I'm trying to sharpen my Scala-fu. Basically, you're getting a list of triple ...