Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 1.74 KB

README.md

File metadata and controls

39 lines (24 loc) · 1.74 KB

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.