Skip to content

Instantly share code, notes, and snippets.

@kitlangton
Created February 2, 2016 21:24
Show Gist options
  • Save kitlangton/ee773ad8d4a24c7a0495 to your computer and use it in GitHub Desktop.
Save kitlangton/ee773ad8d4a24c7a0495 to your computer and use it in GitHub Desktop.
def find_missing(array)
(0..100).inject(:+) - array.inject(:+)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment