Skip to content

Instantly share code, notes, and snippets.

@adilakhter
Created February 16, 2013 20:45
Embed
What would you like to do?
let computeOptCost (budget,N,(opt:int [,]),optFunValue) =
let mutable optCost = 0
for c=budget downto 0 do
if opt.[N,c] = optFunValue then
optCost <- c
else
()
optCost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment