Created
April 15, 2022 19:05
-
-
Save azelenets/8b2ea6c7843ae27c174190f847c94ccd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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