Monday, August 23, 2010

Discover the largest product of five consecutive digits in the 1000-digit number.

The code is a bit awful and not optimized... Python is really easier to work with in order to solve these kinds of algos!

product.cpp
string.txt

g++ -o product product.cpp

0 comments: