Search⌘ K
AI Features

Solution: Missing Number

Solution: Missing Number gives you an array of distinct values from zero through its length, with exactly one value absent. Return the missing number.

Statement

Given an array, nums, containing nn distinct numbers in the range [0,n][0, n] ...