LeetCode Solutions/LeetCoding Challenge/March 2020 LeetCoding Challenge/Missing Number.java
<filename>LeetCode Solutions/LeetCoding Challenge/March 2020 LeetCoding Challenge/Missing Number.java<gh_stars>0class Solution {
    public int missingNumber(int[] nums) {
        return nums.length*(nums.length + 1) / 2 - Arrays.stream(nums).sum();
    }
}