Commits

Craig Phillips committed 8bf9cd9

Correction of an off-by-1 error in Project Euler 8. The result is unaffected hwoever.

  • Participants
  • Parent commits 90500bf

Comments (0)

Files changed (1)

ProjectEuler/Problem8.cs

 
             var result = 0;
 
-            for (int i = 0; i < the1000digitNumber.Length-5; i++)
+            for (int i = 0; i < the1000digitNumber.Length-4; i++)
             {
                 var tempResult = int.Parse(the1000digitNumber.Substring(i, 1))*
                                  int.Parse(the1000digitNumber.Substring(i + 1, 1))*