Created
September 9, 2015 17:12
-
-
Save felipesilva/3e517ec5827a59753e47 to your computer and use it in GitHub Desktop.
Missing Number
This file contains 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
Given an array containing all numbers from 1 to N with the exception of one print the missing number to the standard output. | |
Example input: | |
array: 5 4 1 2 | |
Example output: | |
3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment