Skip to content

doudou-h/project-euler-solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What I have learned

I have learned a lot through solving problems on Project Euler. Here is a short list. I write them down in my own words to make sure that I truly understand them.

Maths

Interesting problems

Games

Why do I work on Project Euler?

It's fun and challenging.

How to solve a new problem?

  • Follow intuition

  • Start from small numbers and look for a pattern

       This is probably the most important one to solve problems on Project Euler. They're maths problems. Maths has its beauty and has patterns.

  • Break the problem down into smaller parts

       This coincides the idea of writing clean code.

How to "cheat"?

       Thanks to its just-in-time (JIT) compilation by translating python code to machine code, pypy can significantly improve performance. It works especially well for recursion and loop from my experience, which can potentially reduce execution time from one hour to a few minutes. That makes an unbearable solution not too bad in the end. See more here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published