📜 ⬆️ ⬇️

Project Euler - solve algorithmic problems and see how the other 30k participants did in a huge number of languages.

A couple of months ago I came across a wonderful resource Project Euler.

Project Euler is a set of mathematical problems that you are invited to solve at least programmatically, at least on paper.

To participate in the project, you need to go through a quick registration, after which you can safely storm the algorithms.
in detail - inside
The highlight of the resource is that you can solve the problem in any language convenient for you, you just need to enter the correct answer in the form.
After the answer is given, you can enter the forum thread on this task and see what methods this task was solved by the other participants, who have accumulated a huge amount during the project (So far 29276 users have 537919 correct solutions; per user).
')
You can see how this problem was solved in almost all living programming languages, see beautiful solutions and coarse bruthofors)

As you progress through the complexity of tasks increases.

Compete with the speed of the algorithm and just discuss the mathematical aspect of the problem.

Extracts from statistics:
tonguenumber of participants
C / C ++3726
python2900
Java1782
C #917
Assembler37
F #97
Haskell945
Fortran32
Nemerleeight
Adasixteen
R7
Prolog2
Boo6
Php425
Pencil / Paper291
Ruby804



So, for example, the very first task out of 200 pieces looks like:
Add all the natural numbers below one thousand that are multiples of 3 or 5.

This is the 50th
Which one of the most consecutive primes?

100ya
The terms of a given sequence.
Have a good dive

Source: https://habr.com/ru/post/37379/


All Articles