Jonathan Landrum af70c6c8f9 Added README to ``largestProduct'' | 10 vuotta sitten | |
---|---|---|
.. | ||
README.md | 10 vuotta sitten | |
largestProduct.cpp | 10 vuotta sitten |
This program was a challenge I found online to find the largest product of five consecutive digits of a 1,000-digit number. Since that is an impossible number to store in C++, and since that is the language I wanted to use, I opted to break the number up and store it in an array. This program surely gives the correct result, but a ``better'' solution would be to program this in a language that allows arbitrarily long integers, such as Lisp, or to use a big number library, such as GMP.