Let's solve HackerRank's take on Project Euler. Please read Contributing before submitting a PR.
Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although mathematics will help you arrive at elegant and efficient methods, the use of a computer and programming skills will be required to solve most problems.
The motivation for starting Project Euler, and its continuation, is to provide a platform for the inquiring mind to delve into unfamiliar areas and learn new concepts in a fun and recreational context.
The intended audience include students for whom the basic curriculum is not feeding their hunger to learn, adults whose background was not primarily mathematics but had an interest in things mathematical, and professionals who want to keep their problem solving and mathematics on the cutting edge.
The problems range in difficulty and for many the experience is inductive chain learning. That is, by solving one problem it will expose you to a new concept that allows you to undertake a previously inaccessible problem. So the determined participant will slowly but surely work his/her way through every problem.
-
Find the challenges here.
-
Please check whether your solution passes most if not all the test cases on HackerRank. They usually need a very optimized solution.
-
Once your solution passes the test cases, create a directory
<problem_number>
of the problem with<problem_number>.go
and a README.md containing the problem statement, examples and explanation from the problem page.