I had talked about Project Euler before, and today I want to stress how important it is to try some of these problems out if you haven’t before. The reason being is that these problems expose you to the type of problems you might receive at an interview. They also help you develop the skills in order to solve math type questions you otherwise wouldn’t have any idea of solving if you hadn’t seen them before. Below is an image of the type of questions you expect to see at Project Euler.
I received a similar math question in a Google Interview. At the time being, I had no idea how to solve it and struggled to come up with an answer. If I had practiced a few math questions before, then it would’ve been quite easy actually. This is why I definitely encourage everyone to try it out if you want to practice your programming and problem solving skills.
You can complete the problems in the language of your choice. To show you my dedication, I have my badge on the footer of this website and its included above. I’m currently at Level 1 because I’ve solved 25 questions so far. If you want a word of advice, try writing all the solutions in one file if you are doing it in a language like Java or C++. I have done so, and I find myself reusing code in order to solve more difficult problems. I’ve even used a combination of functions from previous problems to solve tougher later problems.
Complete the problems one at a time
If you feel like you can’t solve any of them, start with the first one. These problems are made so you can start with the first problem and learn the skills to solve the following problems. Remember, try using Google when you have a question relating on how to solve the problem mathematically. They will give you hints on how to solve the math problems in a reasonable amount of time. Also, recursion is easy and fun to use, but they won’t help you solve many of these problems. So try coming up with a fast iterative solution. As always, try coming up with the best solution because those are the solutions that matter in the end to the recruiters! When you solve each problem you can view other peoples comments on how they solved them so read and learn.