Personal tools

Euler problems

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(rv: vandalism / clean up initial text.)
Line 4: Line 4:
 
'''WARNING''' - Do not peek at any of these pages if you want to enjoy the
 
'''WARNING''' - Do not peek at any of these pages if you want to enjoy the
 
benefits of Project Euler, unless you have already solved the problems.
 
benefits of Project Euler, unless you have already solved the problems.
 
In any case, it is recommended that you try the problems yourself before looking
 
at the solutions. These are great exercises for improving your Haskell-fu.
 
   
 
Note that these solutions are indeed entirely within the spirit of Project Euler. For those who feel otherwise, note that the FAQ on the [http://www.projecteuler.net/ front page of the Project Euler site] says the following:
 
Note that these solutions are indeed entirely within the spirit of Project Euler. For those who feel otherwise, note that the FAQ on the [http://www.projecteuler.net/ front page of the Project Euler site] says the following:
Line 15: Line 12:
 
</blockquote>
 
</blockquote>
   
So anyone reading further will certainly miss some opportunities to<br>
+
In any case, it is recommended that you try the problems yourself before looking
a) discover some beautiful and hidden mathematics<br>
+
at the solutions. These are great exercises for improving your Haskell-fu, and reading the solutions beforehand could spoil the experience of solving them yourself.
b) learn to solve those problems himself.<br>
 
   
 
Any further reading is at your own risk.
 
Any further reading is at your own risk.
 
   
 
* [[Euler problems/1 to 10|Questions 1 to 10]]
 
* [[Euler problems/1 to 10|Questions 1 to 10]]
Line 41: Line 37:
 
* [[Euler problems/181 to 190|Questions 181 to 190]]
 
* [[Euler problems/181 to 190|Questions 181 to 190]]
   
  +
As a useful reference for those wanting a simple way to test their solutions in code, [[Euler answers]] provides a fairly complete list of the numeric solutions to the problems, in the form of a Haskell list of pairs.
   
 
[[Category:Tutorials]]
 
[[Category:Tutorials]]

Revision as of 13:59, 24 February 2008

These are solutions to the problems listed on Project Euler.

WARNING - Do not peek at any of these pages if you want to enjoy the benefits of Project Euler, unless you have already solved the problems.

Note that these solutions are indeed entirely within the spirit of Project Euler. For those who feel otherwise, note that the FAQ on the front page of the Project Euler site says the following:

I solved it by using a search engine, does that matter?

That depends on your motivation for solving the problems. It probably means that you've missed out on some beautiful and hidden mathematics.

In any case, it is recommended that you try the problems yourself before looking at the solutions. These are great exercises for improving your Haskell-fu, and reading the solutions beforehand could spoil the experience of solving them yourself.

Any further reading is at your own risk.

As a useful reference for those wanting a simple way to test their solutions in code, Euler answers provides a fairly complete list of the numeric solutions to the problems, in the form of a Haskell list of pairs.