Created
March 10, 2015 13:41
-
-
Save aalvarado/104ce92e4d3660c12a04 to your computer and use it in GitHub Desktop.
PermMissingElem
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
def solution(a) | |
((( a.size + 2 ) * ( a.size + 1 )) / 2) - ( a.reduce(&:+) || 0 ) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://codility.com/demo/results/demo4PUYC8-HXU/