Advertisement
Guest User

Untitled

a guest
Aug 8th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.35 KB | None | 0 0
  1. let euler11 =
  2.     let numGrid = ProblemData.Euler11NumberGrid // a 20x20 Array2D
  3.     let dimensionLengths = Array2D.length1 numGrid
  4.     let highestProd = ref 0
  5.     Array2D.iteri (fun x y elem ->
  6.         if (findBestProductFromPoint x y numGrid) > !highestProd then
  7.             highestProd := (findBestProductFromPoint x y numGrid)) numGrid
  8.     !highestProd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement