Skip to content

Instantly share code, notes, and snippets.

@Nublo
Created October 7, 2018 15:06
Show Gist options
  • Save Nublo/cb98a65ac6f086044517f5cafa015304 to your computer and use it in GitHub Desktop.
Save Nublo/cb98a65ac6f086044517f5cafa015304 to your computer and use it in GitHub Desktop.
maxSum xs = maximum $ zipWith (+) xs (tail xs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment