Missing number

You have an array of numbers 1 to 100 in an array. Only one number is missing in the array. The array is unsorted. Find the missing number.

def missingNumber(arr)
  # your answer
end

results matching ""

    No results matching ""