Skip to content

Instantly share code, notes, and snippets.

@azelenets
Created April 15, 2022 19:05
Show Gist options
  • Save azelenets/8b2ea6c7843ae27c174190f847c94ccd to your computer and use it in GitHub Desktop.
Save azelenets/8b2ea6c7843ae27c174190f847c94ccd to your computer and use it in GitHub Desktop.
def solution(input_array)
missing_numbers_array = (1..input_array.size + 1).to_a - input_array
missing_numbers_array.first
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment