Skip to content

Instantly share code, notes, and snippets.

@inossidabile
Last active December 13, 2015 17:08
Show Gist options
  • Save inossidabile/4945615 to your computer and use it in GitHub Desktop.
Save inossidabile/4945615 to your computer and use it in GitHub Desktop.
for value in @values
sum = 0
costs.push []
for pair in value
costs.last().push pair[0]
sum += pair[0]
totalHeights.push sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment