Your question is Find Missing Number in Range. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
At Stripe, a service emits every integer from 0 to n exactly once, but one value is missing from the final array. Given an array nums containing n distinct integers in the range [0, n], return the missing number.
nums[0, n]len(nums) = nnums are distinct[0, n]def missing_number(nums):