Missing Number | Leetcode 268 | Explained

Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array. Here’s the [Problem Link] to begin with. Example 1:Input: nums = [3,0,1]Output: 2Explanation: n = 3 since there are 3 numbers, so all numbers are in the range [0,3]. 2 is the missing number in … Continue reading Missing Number | Leetcode 268 | Explained