Skip to main content

Command Palette

Search for a command to run...

Project Euler: About the Solution Series

Solving Project Euler Problems using Javascript!

Published
2 min read
Project Euler: About the Solution Series

In this series, I will be discussing the solution to the 'Project Euler' Problems.

The 'Project Euler' is a series of challenges that will need more than mathematical insights to solve. It helps in improving problem-solving and programming skills.

We can use any programming language to solve problems. In a way, it improves our data structure skills.

Usually, I try to solve the original project euler version of the problem. Then move on to the modified version of it in Hackerrank.

Hackerrank offers a heavily modified version of the problem with more test cases. It also has time and space constraints. So your code should be efficient to pass all the test cases. Most of the time, the brute force approach will time out in hackerrank.

Remember, there is no best solution for any problem.

Some problems involve many ways of solving them. I will be using Javascript to solve the problems.

If you guys find a better solution, please add it to the comment.

I have added all the solutions to GitHub. You can find the repository project-euler-solutions-javascript.

Note:

  • Please note that the solution provided is only for learning purposes. Once you understand the problem, please try it on your own before referring to the solutions.

  • I am a software engineer and have limited knowledge of mathematics. So while solving some problems, I would refer and link to math-related forums to understand the formula used.


ProblemTitlePE SolvedHR Solved
1Multiples of 3 or 5
2Even Fibonacci numbers
3Largest prime factor
4Largest palindrome product
5Smallest multiple
6Sum square difference
710001st prime
8Largest product in a series
9Special Pythagorean triplet
10Summation of primes
11Largest product in a grid
12Highly divisible triangular number
13Large sum
14Longest Collatz sequence

More from this blog

T

The Introvert Coder | Quietly Building Loud Code!

23 posts

Quietly Building Loud Code!